随笔分类 - db
数据库
摘要:进入到mysql交互模式下, 创建库: create database my_database default charset utf8 collate utf8_general_ci; 进入自己的库: use my_database; 执行sql文件语句: source table.sql ; 注
阅读全文
摘要:
阅读全文
摘要:INSERT INTO `permeationdomain` VALUES ('10000.ys.51juban.com', '282', 'superman', '2020-01-06 08:54:28', null, null, null, null, null, null); INSERT I
阅读全文
摘要:在查询窗口用select语句按条件查出所需结果,然后用“导出向导”把查询结果导成sql文件,但是导出来的sql语句没有表名了。 导成的sql文件大致是这样的, INSERT INTO `` (`id`, `riskcode`, `riskname`) VALUES(1,'AAA','BBB'); 所
阅读全文
摘要:方法1: 用SET PASSWORD命令 首先登录MySQL。 格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = password('123'
阅读全文