
mysql
文章平均质量分 73
董武明
这个作者很懒,什么都没留下…
展开
-
如何在 Ubuntu 18.04 上安装 MySQL
MySQLhttps://www.digitalocean.com/community/tags/mysql数据库UbuntuUbuntu 18.04介绍MySQL是一个开源数据库管理系统,通常作为流行的LAMP(Linux、Apache、MySQL、PHP/Python/Perl)堆栈的一部分安装。它使用关系数据库和 SQL(结构化查询语言)来管理其数据。安装的简短版本很简单:更新你的包索引,安装mysql-server包,然后运行包含的安全脚本。sudo apt up...翻译 2022-02-17 20:17:07 · 1160 阅读 · 0 评论 -
dbeaver Can‘t create driver instance
使用dbeaver 创建新的连接,下载完mysql驱动后,连接报错: Can’t create driver instanceError creating driver ‘MySQL’ instance. Most likely required jar filesare missing. You should configure jars in driver settings. Reason:can’t load driver class ‘com.mysql.cj.jdbc.Driver’ .原创 2022-02-10 14:04:17 · 37640 阅读 · 1 评论 -
Mac install MySQL-python 报错 _mysql.c:44:10: fatal error: ‘my_config.h‘ file not found
正常来说直接执行pip安装,就是可以的,但是MySQL-python偏偏比较独特pip install MySQL-python报错:_mysql.c:44:10: fatal error: 'my_config.h' file not found #include "my_config.h" ^~~~~~~~~~~~~ 1 error generated. error: command 'cc' failed with exit status 1原创 2021-06-30 22:35:07 · 372 阅读 · 0 评论 -
MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT’
我在遇到了数据库访问时错误,具体如下:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right原创 2015-10-15 20:48:26 · 6906 阅读 · 0 评论 -
Ubuntu ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)
配置远程连接mysqlMySQL>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'yourpassword' WITH GRANT OPTION;MySQL>FLUSH PRIVILEGES;远程连接mysql时mysql -h127.0.0.1 -u root -p报错:ERROR 2003 (HY000): Can’t co原创 2016-07-25 10:42:31 · 18142 阅读 · 0 评论 -
Mysql5.7忘记root密码及mysql5.7修改root密码的方法
关闭正在运行的 MySQL :[root@www.woai.it ~]# service mysqld stop启用安全模式:[root@www.woai.it ~]# mysqld_safe --skip-grant-tables &为了安全可以这样禁止远程连接:[root@www.woai.it ~]# mysqld_safe --skip-grant-tables --skip-netwo转载 2016-12-02 14:51:48 · 823 阅读 · 0 评论 -
MySQL解决支持插入emoji表情等4字节字符失败
MySQL解决支持插入emoji表情等4字节字符失败1.打开数据库配置文件(centos在/etc/my.cnf),加入下面文字:[client]default-character-set= utf8mb4[mysqld]character-set-client-handshake = FALSEcharacter-set-server = utf8mb4colla...原创 2018-03-30 17:44:51 · 1254 阅读 · 0 评论 -
MYSQL CHARACTER SET utf8mb4 Specified key was too long; max key length is 767 bytes
SET GLOBAL innodb_file_format=Barracuda;SET GLOBAL innodb_file_per_table=ON;SET GLOBAL innodb_large_prefix=1;ALTER TABLE 表名字 ROW_FORMAT=DYNAMIC;ALTER TABLE users CONVERT TO CHARACTER SET utf8mb4...原创 2018-04-11 11:55:07 · 991 阅读 · 0 评论 -
mac pip install MySQL-python IndexError: string index out of range
mac pip install MySQL-python IndexError: string index out of rangepip install mysql Collecting mysql Downloading https://files.pythonhosted.org/packages/06/ef/c4efbf2a51fb46aba9be03a973638d9539c...原创 2018-07-03 19:09:22 · 4979 阅读 · 9 评论