sudo /usr/local/mysql/bin/mysqld_safe --user=mysql --skip-grant-tables --skip-networking 使用这条命令可以跳过开始的认证.但是这样的登录有权限的限制 要彻底解决问题 mysql> use mysql mysql> UPDATE user SET Password=PASSWORD('') where USER='root' -> ; ERROR (42S22): Unknown column 'Pas
解决了Plugin 'InnoDB' init function returned error问题和error1405那个安全设置密码登陆问题,我个人觉得关键点在于删除C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/目录下的数据文件,当然,我不可能在重现问题求证了,不过看此贴的人可以尝试一下只做此步是否能解决问题,当然还有删除MYSQL安装目录中的残留文件步骤也比较重要 Cite From:h
每次设置root和远程访问都容易出现问题, 总结了个通用方法, 关键在于实用 step1: # mysql -u root mysql mysql> Grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option; //增加远程访问权限mysql> UPDATE user SET Password=PASSWORD(’newpassword’) where USER=’root’; //增加ro
一.sql中使用正则表达式 select name,email from user where email Regexp "@163[.,]com$"; sql语句中使用Regexp对性能影响较大. 二.使用Rand()函数获取随机数据 rand();随机数函数 1.随机排序 mysql> select * from hello order by rand(); 2.随机列抽取3条 mysql> select * from hello order by rand() lim