MySQL
狂飙的_蜗牛
蜗牛,为梦想而生。
展开
-
MySQL自动备份
#!/bin/sh # mysql_backup.sh: backup mysql databases and keep newest 5 days backup. db_user="root" db_passwd="imsuser" db_host="localhost" db_name="ims"转载 2016-07-26 09:21:15 · 198 阅读 · 0 评论 -
MySQL自动备份
二:赋予脚步可执行权限 chmod +x mysql_backup.sh 三:添加定时执行计划 vi /etc/crontab 添加:00 5 * * * root /backup/mysql_backup.sh 每日5点钟备份一次数据库 四:补充 linux 开机自动启动 cd /usr/bin ln -s -f /usr/local/jdk1.7.0转载 2016-07-26 09:21:58 · 178 阅读 · 0 评论 -
MySQL自动备份
#!/bin/bash #PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin #export PATH #export LANG=en_US.UTF-8 password="/;p0.lo9" savedir=/usr/backup cd "$savedir" time="$(date +"%转载 2016-07-26 09:22:38 · 177 阅读 · 0 评论 -
MySQL开启远程登录访问
GRANT ALL ON *.* TO test@'192.168.10.169' IDENTIFIED BY ’test123' WITH GRANT OPTION IP为:192.168.10.169 用户名:test 密码:test123原创 2016-07-26 09:24:38 · 236 阅读 · 0 评论 -
Mysql启动失败
启动 mysql 服务的时候报如下错误: Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 解决方法: mysql_install_db --user=mysql 初始化数据库即可转载 2016-08-04 10:03:55 · 343 阅读 · 0 评论 -
MySQL备忘录
一、插入数据乱码:Incorrect string value: '\xE6\x9B\xB9\xE5\x86\xAC...' for column 'realname' at r 1、alter database team_club character set utf8; 2、alter table activity convert to character set utf8 3、al转载 2016-08-15 10:53:55 · 234 阅读 · 0 评论