学习过程中遇到的报错问题
Carol_Luobo
这个作者很懒,什么都没留下…
展开
-
登录MySQL的时候,报错ERROR 1044 (42000): Access denied for user ‘vsearch‘@‘localhost‘ to database ‘vsearchlo
[carol@localhost ~]$ mysql -u vsearch -p vsearchlogdbEnter password: ERROR 1044 (42000): Access denied for user 'vsearch'@'localhost' to database 'vsearchlogdb'解决方法:先以root用户登录MySQL然后使用此命令查询用户状态mysql> SELECT host,user,Grant_priv,Super_priv FROM my原创 2021-01-14 20:44:48 · 284 阅读 · 0 评论 -
python3连接MySQL数据库
在学习head first python 第7掌的时候,学习到用flask写一个web页面,并把查询到数据存储在数据库中其中一段代码def log_request(req: 'flask_request', res: str) -> None: import pymysql #书中介绍的是import mysql.connector,执行的时候一直报没有‘mysql’模块的错误,Google了也没有解决,后面换成import pymysql就解决了,数据也可以正常存储到数据库中原创 2021-01-05 15:55:36 · 196 阅读 · 3 评论 -
无法打开内核设备“\\.\Global\vmx86”
记本安装Windows10系统,一直运行着VMware软件。电池用完后上电重启笔记本电脑,打开VMware时,会出现如下错误提示:无法打开内核设备“\.\Global\vmx86”:系统找不到指定的文件。您在安装 VMware Workstation后是否进行了重新引导?未能初始化监视器设备。解决方法:Win键+X键—>选择命令提示符(管理员),或者找到c:\windows\system32\cmd.exe 文件,右击选择以管理员身份运行。输入以下的命令并回车PS C:\Wind原创 2020-12-25 10:27:19 · 1660 阅读 · 0 评论 -
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
具体使用python的DB-API创建WEB 应用的数据库和表其中mysql> grant all on vsearchlogDB.* to 'vsearch' identified by 'vsearchpasswd';ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syn原创 2020-12-23 17:06:03 · 379 阅读 · 0 评论