修改密码:
use mysql;
update user set password = old_password('123') where user = 'root';
use mysql;
update user set password = old_password('123') where user = 'root';
解决方案 »
- mysql with rollup 多组统计 如何去掉子项汇总,保留最后条汇总?
- phpMyadmin配置问题
- mysql-standard-5.0.27-linux-i686-glibc23.tar.gz
- MySQL Server Error:Can't connect to MySQL server on 'localhost' (10048)
- sql查询语句合并成一条记录
- Mysql 存储过程问题
- 自己的计算机上装了MYSQL数据库, 可是别的计算机上的应用程序怎样访问我的MYSQL数据库?
- 如何将postgreSQL在linux上的SQL文导入到windows下postgreSQL里?
- MYSQL如何实现自动删除数据库中的记录
- 招聘DELPHI程序员(广州)
- 大家看看这句话错在哪?
- 为什么用vc插入中文总是不成功?
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = '/var/lib/mysql/mysql.sock'; // Path to the socket - leave blank for default socket,***这个必须指定mysql.sock的位置,有些mysql的配置,该文件是/tmp/mysql.sock***
$cfg['Servers'][$i]['connect_type'] = 'socket'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)如果上述配置没有问题的话,可能你是通过phpMyAdmin来远程访问机器上的数据库,这时还要注意用户是否具有远程访问的权限,可以通过下面的语句让某一数据库用户具有远程访问的权限:
grant all privileges on 数据库名.* to 数据库用户名@"%" identified by '密码' with grant option