[英]how do i create a username and password for mysql?
Hi i have installed locally xampp php and mysql. 嗨,我已经在本地安装了xampp php和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.
我根本不登录,我只按开始即可同时使用apache和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. 我知道这可能是一个愚蠢的问题,但是我已经在Google上搜索了,但我不明白...该怎么做以及是否可以在本地进行。
Thanks! 谢谢!
apache or php do not have credentials, only mysql has. apache或php没有凭据,只有mysql有。 usually with xamp comes phpmyadmin which lets you manage users for mysql, too.
通常xamp附带phpmyadmin,它也允许您管理mysql的用户。 In my case, it was preconfigured just to work.
就我而言,它是预先配置的,可以正常工作。 user for mysql was root, password blank.
mysql用户为root,密码为空。 Maybe you should change that ;)
也许你应该改变它;)
Access phpmyadmin via http://localhost/phpmyadmin/ 通过http:// localhost / phpmyadmin /访问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. 在phpmyadmin目录(在xampp目录中称为phpMyAdmin)中,有一个config.inc.php,其中配置了phpMyAdmin使用的用户名。 If you change the password via phpMyAdmin you have to edit it here, too.
如果您通过phpMyAdmin更改密码,则也必须在此处进行编辑。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.