简体   繁体   中英

No privileges in phpmyadmin; tried root with no password

I have PHP 5.2 and MySQL5 up and running on a virtual machine and am trying to create a database using phpmyadmin. While I can login successfully with a username and password I chose before, I have no permissions to create databases. I tried logging in as root with no password, and when that didn't work I changed the config.inc.php file like so:

$cfg['Servers'][$i]['AllowNoPassword'] = true;

It still doesn't work...

How do I grant myself privileges so I can create a database already??

if you are the admin of the system then back to login and go to the mysql setting in phpmyadmin, and then go to privileges tab and set the privileges for the login name through which you can login, by the way this type of error would be remove simply..

check your connection..

$con='localhost','username','password'; the above connection is used for authorized user and the below is for every one..

$con='localhost','root',;

hope will help you.. ;)

Ok everyone. Turns out I had to go under:

pupppet/hieradata/common.yaml

and find my root password (which I apparently set up while making the Puphpet file). Once I got that I was able to login and give myself privileges. sigh

Thank you all for your responses :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM