开发者

how do i create a username and password for mysql?

Hi i have installed locally xampp php and mysql. Im reading and it says about having a username and a password. I dont login at all, i just press start to both apache and php. How i put开发者_如何学Go a username and password?

I know it might be a silly question but i have googled and i dont understand... how to do it and if i can do it locally.

Thanks!


apache or php do not have credentials, only mysql has. usually with xamp comes phpmyadmin which lets you manage users for mysql, too. In my case, it was preconfigured just to work. user for mysql was root, password blank. Maybe you should change that ;)

Access phpmyadmin via http://localhost/phpmyadmin/

In the directory of phpmyadmin (called phpMyAdmin in your xampp dir) there is a config.inc.php where the username that phpMyAdmin uses is configured. If you change the password via phpMyAdmin you have to edit it here, too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜