close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot add a new MySql database

Thread began 5/08/2013 5:40 am by john70964 | Last modified 5/11/2013 12:17 pm by john70964 | 554 views | 8 replies |

john70964

Cannot add a new MySql database

Hello
I realise the error I am getting has very little to do with Webassist but am hoping someone may have some helpful information perhaps "been here before"!
I am using xampp with DW CS6 on XP

I am also using Navicat and have 3 sites with mysql databases all working OK on my local machine.

I decided to create another mysql database but am having difficulties.

In Navicat I went to create a new database and entered a name but received an error message
1144 Access denied for user 'root'@'localhost' to database 'Mydatabase'

I selected Manage Users and received the error
1142 SELECT command denied to use 'root'@'localhost' for table 'user' as far as I can see there is no table called user.

If I right click existing and working database and the select Manage users I get the error
1142 SELECT command denied to use 'root'@'localhost' for table 'user'

I put the question to Navicat and they came back with the following suggestions but I cannot find where to run their suggestions.

GRANT ALL PRIVILEGES ON *.* TO 'YourUserName'@'%' IDENTIFIED BY "YourPassword";

or

GRANT ALL PRIVILEGES ON *.* TO 'YourUserName'@'YourIP' IDENTIFIED BY "YourPassword";

I cannot open phpMyAdmin as I get errors.

Sorry if placing a mysql question here is out of order.

Thank You

John

Sign in to reply to this post

Jason ByrnesWebAssist

In Navicat, there should be a SQL Query window where you can run the GRANT Privlages SQL Command

What are the errors you get opening phpMyAdmin?

Sign in to reply to this post

john70964

Thanks for your help Jason
The error when trying to open phpMyAdim is:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

In Navicat the is a"tool" called Console
Navicat suggested I ran GRANT ALL PRIVILEGES ON *.* TO 'YourUserName'@'YourIP' IDENTIFIED BY "YourPassword"; in a command line I have carried this out but it produces an error.
I am attaching a picture of the command line perhaps you can see where I am going wrong.
Regards

John

Sign in to reply to this post

Jason ByrnesWebAssist

launching the command line using:
mysql -u localhost

you are leaving the username blank.

the blank username does not have privileges for running the command grant command. hence the returned error

access denied for user ''@'localhost'

you have not logged in, so there is no user.

Sign in to reply to this post

john70964

Thank you so much for that Jason
I did not realise that the username went where the little dot was placed, I thought that may have meant "here"!

After inserting the username the script did not complain with an error so I guess that was OK.
It doesnt seem to have changed very much as far as Navicat is concerned, I still cant create a new database in that, however I can now open phpMyAdmin so thats real progress!

I thank you again!

Sign in to reply to this post

Jason ByrnesWebAssist

can you create the table in php my admin?

then edit it in navicat?

Sign in to reply to this post

john70964

Seems not at the moment
in phpMyadmin under the database tab and under the Create New Database link there is a X and No Privileges sign.

Sign in to reply to this post

Jason ByrnesWebAssist

in phpMyAdmin, there should be a User Tab

listed in the users section is the root / localhost user, make sure that user is set to have al privileges.

this thread al stack overflow has some details on how to reset the root users privileges:

http://stackoverflow.com/questions/1709078/how-can-i-restore-the-mysql-root-users-full-privileges

if all else fails, export your databases using the export tab in phpMyAdmin, uninstall xampp and do a fresh download install of it. then re import the databases.

Sign in to reply to this post

john70964

Thanks Jason
I think I will not have to use the "last resort" but it was good to hear your ideas on If all else fails.

I dont really understand what went amiss but after reading it seemed like thousands of forums, someone suggested using user and no password to log in from then onward it all came together.

I also had to change the connection properties to"user" in phpmyadmin and in Navicat.

The user tab called privileges in phpmyadmin would not appear until I used the "user" login

I have no idea why this should be I definitly havent used "user" previously.

There you have it. I thank you for taking the time to assist me.

Regards

John

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...