重新安装mysql的心得
曾经失败过n次,让我相当无奈最后终于找到了一个解决方案,供大家分享
删掉注册表的方法,我也曾经用过,但总是失败,建议如下
一:先卸载软件mysql
二:先删注册表的东西;
三:最后在你的当前用户里c盘下C:\Documents and Settings\All Users\Application Data\找到mysql的目录,删掉,忘了告诉一句;
那是隐藏文件,先改变文件夹设置就行!
相关文档:
http://blog.c1gstudio.com/archives/602
nagios_plugin安装时正确关联mysql后会在libexec下产生check_mysql文件
/usr/local/nagios/libexec/check_mysql -h
check_mysql v2034 (nagios-plugins 1.4.13)
Copyright (c) 1999-2007 Nagios Plugin Development Team
< ......
修改linux服务器的http配置之后,必须重启Apache服务,命令为: /etc/rc.d/init.d/httpd restart
chown -R mysql:mysql 目录名 改变文件属性
mysqladmin -u root -p password 'new password' 设置密码
apt-get remove 删除软件
apt-get clean 清理
/etc/rc.d/init.d/mysqld restart
php 就配置了session 主 ......
手动建表:
CREATE TABLE `excel` (
`id` int(11) DEFAULT NULL,
`name` varchar(50) DEFAULT NULL,
`passwd` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=gb2312; 注意是gb2312
然后在连接数据库时加上:
useUnicode=true&characterEncoding=gb2312.
就ok啦! ......
I found a solution to anyone else who may be having this problem.
First start mysql using skip grant tables
root@ns1 [/var/lib/mysql/mysql]# service mysql start --skip-grant-tables
Starting MySQL [ OK ]
now with mysql started, you can repair the mysql/user table
root@ns1 [/var/lib/mysql ......
解决方法(转):---但执行第一种办法时出现错误,第二种办法成功
1。改表法。可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -pvmwaremysql>use mysql;mysql>update use ......