SQL
浅笑云兮
土豆先生,我是番茄小姐~~。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
展开
-
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
时隔一年多重启MYSQL,便遇到问题,隔了这么久,很多都忘记了,需要重新学习考虑是未启动mysql服务键入:net start mysql返回:服务名无效-------分析:可能是尚未启动MYSQL服务右击此电脑-管理-服务和应用程序-服务-找到MYSQL80-右击启动此时:CMD中键入mysql -uroot -p[密码]即可链接数据库...原创 2020-03-29 14:02:24 · 297 阅读 · 0 评论 -
SQL:ERROR 1290 (HY000) ERROR 29 (HY000)
ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it cannot execute this statement.执行MYSQL数据库数据导出遇见因MYSQL对数据导出目录有限制安装MYSQL后会生成配置文件my.ini,记录了MYSQL所有默认配置,在C盘Progr...原创 2019-06-13 14:15:23 · 1846 阅读 · 1 评论 -
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
问题:键入update user set authentication_string=password('123456') where user='root';出现:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to you针对非root用户修改密...原创 2019-04-16 16:04:50 · 1426 阅读 · 0 评论 -
MySQL(三)
练习1:找出各部门工资最高的员工题目要求:思路:首先依据要求将两个表格进行组合成一个表格,再加入一个表格(依据部门进行分组且取个部门最大薪水)组合显示1—两个表格的创建及数据载入create table employee(id int unsigned primary key not null auto_increment,name varchar(20) not null,s...原创 2019-04-06 22:00:22 · 181 阅读 · 0 评论 -
MySQL(二)
练习1:题目要求:创建如下所示的 courses 表 ,有: student (学生) 和 class (课程)step1:创建表格:CREATE TABLE courses(student VARCHAR(255) NOT NULL ,class VARCHAR(255) NOT NULL); step2:插入数据INSERT INTO courses VA...原创 2019-04-04 20:41:08 · 193 阅读 · 0 评论 -
解决Mysql中出现ERROR 1136 (21S01): Column count doesn't match value count at row 1
问题出现在于:新插入一行数据时候,返回错误。键入:mysql> insert into students values(1,"goutou",18,"男",12121);返回:ERROR 1136 (21S01): Column count doesn't match value count at row 1然后检查创建的表格:检查语句没有问题,想到之前进行过删除一个列的...原创 2019-04-04 15:15:56 · 45802 阅读 · 2 评论 -
MySQL(一)
安装过程需要注意:若cmd中无法搜寻到mysql—添加环境变量构建连接时,设置密码要记住,后面忘记了修改密码麻烦(一)查询语句–查询重复邮箱所创建的表格:查找email表中重复邮箱:select * from email group by email having count(*) >1则输出显示:而查找不同邮箱则对应的是:select * from email grou...原创 2019-04-02 20:39:37 · 116 阅读 · 0 评论