mysql -u root -p 输入密码进入mysql:
mysql>grant all on *.* to root@localhost identified by 'yourpwd';
mysql>grant all on *.* to [email protected] identified by 'yourpwd';一般为了安全不设置成root@'%'让所有机器都能访问数据库
mysql>grant all on *.* to root@localhost identified by 'yourpwd';
mysql>grant all on *.* to [email protected] identified by 'yourpwd';一般为了安全不设置成root@'%'让所有机器都能访问数据库
phpMyAdmin不能使用,提示:无法载入MySQL扩展
请检查PHP配置
文档(这是一个链接)数据库已经有了,表也有。该修改哪里?
这个Linux上的apache是系统带的。
我想设置字符集default-character-set=gb2312
mysql配置可以把mysql目录下(我安装的这个文件在mysql/support-files下)的my-medium.cnf拷到/etc下,并改名为my.cnf
即/etc/my.cnf
然后vi /etc/my.cnf
在[mysqld]下添加一行
default-character-set=gb2312
重启mysql即可