简体   繁体   中英

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 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.

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