数据库
jasminlu
未来可期
展开
-
linux环境下配置远程连接mysql服务器
这个问题: error: 'Access denied for user 'root'@'localhost' (using password: YES)' 使用mysql数据库管理工具无法直接连接,必须通过ssh。 在网上找了很多教程最后发现这个方法最简单粗暴: GRANT ALL PRIVILEGES ON *.* TO '用户'@'%'IDENTIFIED BY '密码' WITH G...原创 2019-08-06 10:38:41 · 296 阅读 · 0 评论 -
mysql好用的语句
批量修改字段 UPDATE users SET username=REPLACE(username,'病假','--') WHERE username LIKE '%病假%'; 删除 DELETE from xxuan_lawyer_demo_copy1 where id>2000 修改递增值 alter table xxuan_tv auto_increment= 11...原创 2019-08-16 09:48:33 · 120 阅读 · 0 评论