MySQL
江南浪人
这个作者很懒,什么都没留下…
展开
-
Linux下Mysql忘记密码
确认只有你能登录这台机器,因为过程中Mysql出于无密码登录状态,任何有这台机器权限的人都可能进来搞破坏,最好的做法就是拔掉网线。1.编辑my.cnf文件,在mysqld下面加上一行“skip-grant-tables‘,加完之后是这样[root@centos6 ~]# vi /etc/my.cnf [mysqld]skip-grant-tablesdefault-charac原创 2015-06-24 21:58:30 · 359 阅读 · 0 评论 -
MySql备份需要注意的几点
mysqldump命令备份还原大家经常用备份一个数据库:mysqldump -hlocalhost -uroot -p123456 > mySqlBackup.sql所有数据都是以sql语句的形式存在,还原的时候直接 source mySqlBackup.sql就行,连建库都不需要。但是这里有个坑,不能完全依赖这玩意儿,自己写的自定义函数和存储过程可是会丢失的。mysqld原创 2015-06-24 21:28:49 · 438 阅读 · 0 评论 -
MySQL函数功能
MySQL默认函数功能是关闭的。1.查看状态mysql> show variables like '%func%';+---------------------------------+-------+| Variable_name | Value |+---------------------------------+-------+原创 2015-06-24 22:08:22 · 382 阅读 · 0 评论 -
MySQL导入Emoji表情符号报错
Exception in thread "main" org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized SQLException for SQL [update user_info set nick_name = ?, is_regular = ? where u原创 2015-06-26 18:21:13 · 2257 阅读 · 1 评论