Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 3rd, 2010, 09:14 AM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing MySQL from Dreamweaver without root

I have been going through a few tutorials where Dreamweaver CS5 connects to a MySQL database. On all occassions, within Dreamweaver i can always connect to the MySQL database (from XAMPP 1.7.3) successfully with the "root" user but when i try to connect with any other user, it fails with the same connection error message of:

MySQL Error#: 1044
Access denied for user 'cs5write'@'localhost' to database 'phpcs5'.

Any advice or suggestions very much appreciated.

Cheers,
kosh
 
Old May 11th, 2011, 10:46 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

I know it's an old question but the solution is to grant the user 'cs5write' access to the database 'phpcs5' the easiest way to do this is via the MySQL Administration tool.
 
Old July 31st, 2011, 02:54 PM
Registered User
 
Join Date: Jun 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Similar problem when accessing MySQL cloud db

I was looking up this error, and found this thread, maybe someone is still watching :) I'm actually trying to connect to a specific MySQL cloud db, and I keep getting a similar access denied error. Not sure if this has to do with the external IPs I'm using... This is a tough one.
 
Old August 2nd, 2011, 07:46 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

The user, the account name for the user access the database, needs to be granted permission to connect to the database from either localhost or any other allowed address. You then setup what the user is allowed to do, create table, drop tables etc etc.

The solution is as stated above give the user account you wish to use access to the database, and make sure you grant the minimum priv's so the user can do what they need to and nothing more.





Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL said: select command denied to user: 'root@ surendran MySQL 2 September 9th, 2010 12:27 AM
Connect php to mysql using dreamweaver Nicholsen MySQL 1 December 14th, 2006 07:26 AM
Dreamweaver and MySQL ire Dreamweaver (all versions) 0 May 27th, 2006 06:41 AM
Moving the MySQL Database Root Directory miguelm BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 26th, 2005 02:13 PM
Jsp+mysql+dreamweaver MX ellios Java Databases 5 February 23rd, 2005 04:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.