mysql
文章平均质量分 75
zhangleia
这个作者很懒,什么都没留下…
展开
-
mysql快速生成千万条测试数据的方法
创建一个临时内存表, 做数据插入的时候会比较快些 -- 创建一个临时内存表 DROP TABLE IF EXISTS `vote_record_memory`; CREATE TABLE `vote_record_memory` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` varchar(20) NOT NULL DEFAULT '', `vote_num` int(10) unsigned NOT NUL原创 2022-01-26 17:06:20 · 595 阅读 · 2 评论 -
Mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
GRANT ALL ON *.* TO `root`@`localhost` IDENTIFIED BY '123456789'; GRANT ALL ON *.* TO `root`@`127.0.0.1` IDENTIFIED BY '123456789';原创 2019-09-27 21:54:46 · 2376 阅读 · 0 评论 -
linux mysql crontab 定时 备份数据库
#!/bin/bash #备份test数据库 /www/server/mysql/bin/mysqldump -uroot -p用户密码 test > /home/backup/test_$(date +"%Y%m%d-%H%M%S").sql #删除5分钟前的备份的test数据库文件 find /home/backup -mmin +5 -name "test*.sql" -e...原创 2019-09-07 22:24:14 · 110 阅读 · 0 评论