简体   繁体   中英

How to connect with mysql server…?

Hello friends I'd installed WAMP server and I changed root password and now it is saying that. Can't connect to SQL server password or username is wrong.

After changing MySQL password you need to set the password in config.inc.php of phpMyAdmin because the default root password is "" (empty). So now goto

C:\\wamp\\phpmyadmin\\ directory and open config.inc.php in any text editor and find out

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password change this with new password

After that save and exit from text editor. Now restart your Wamp Server and try to access MySQL through phpMyAdmin.

For more visit Changing config.ini.php

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