易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql 数据库卸载不完全,配置出错解决办法

The security settings could not be applied to the database because the connection has failed with the following error.
Error Nr. 2003
Can't connect to MySQL server on 'localhost' (10061)
If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings.
If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from your last installation is still needed to connect to the server. In this case please select skip now and re-run the Configuration Wizard from the start menu.
*****************************************************************************************
The security settings could not be applied to the database because the connection has failed with the following error.
Error Nr. 1045
Access denied for user 'root'@'localhost' (using password: YES)
If a personal firewall is running on your machine, please make sure you have opened the TCP port 3306 for connections. Otherwise no client application can connect to the server. After you have opened the port please press [Retry] to apply the security settings.
If you are re-installing after you just uninstalled the MySQL server please note that the data directory was not removed automatically. Therefore the old password from your last installation is still needed to connect to the server. In this case please select skip now and re-run the Configuration Wizard from the start menu.
MySQL 5.1 安装过程中报apply security setting错误的解决办法
1, 卸载MySQL
2, 删除目录 C:\Documents and Settings\All Users\Application Data\MySQL
3, 重新安装MySQL 就 OK 啦
------------------------------------------
[MySQL] Could not start the service MySQL 解决方法
安装mysql 5.1.33,在运行Server Instance Configuration wizard时的Execut


相关文档:

mysql 乱码处理

 1. mysqldump -u username -h somehost -p --compatible=mysql40 db_name > temp.sql
  2. 用phpmyadmin清空数据库并设置数据库整理为utf8_general_ci
  3. mysql -u username -h somehost -p --default-character-set=utf8 db_name < temp.sql ......

简易脚本方便备份MySQL数据库

简易脚本
方便备份MySQL
数据库
@echo off
echo.
echo      MySQL数据库备份
echo *****************************
echo.
echo 今天是 %date%
echo 时间是 %time%
echo.
echo *****************************
set "Ymd=%date:~,4%%date:~5,2%%date:~8,2%"
md "E:\%Ymd% ......

mysql 时间的处理

TO_DAYS(date)   //给定一个日期,返回从0年开始的天数。
from_DAYS(N)   //给定一个天数,返回一个日期。
如:
select TO_DAYS('1997-10-7')   //返回729669
select from_DAYS(729669)    //返回1997-10-7
UNIX_TIMESTAMP(), UNIX_TIMESTAMP(date)
若无参数调用,则返 ......

给mysql添加一个管理员的SQL语句

insert into mysql.user
SELECT '%', 'admin', PASSWORD('admin'), Select_priv, Insert_priv, Update_priv,
 Delete_priv, Create_priv, Drop_priv, Reload_priv,
 Shutdown_priv,  Process_priv, File_priv, Grant_priv, References_priv,
 Index_priv, Alter_priv, Show_db_priv, Super_priv, ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号