名字
mariadb已经支持递归查询了,不过需要用较新的版本,本次直接把mariadb升级到当前最新的10.4.7,简单记录一下
版本列表
https://downloads.mariadb.org/mariadb/+releases/
挑选合适的资源
报如下错误,错误文件在data目录下的${xxxx}.err文件中
2019-08-06 6:36:04 0 [Warning] You need to use --log-bin to make --binlog-format work.
InnoDB: using atomic writes.
2019-08-06 6:36:04 0 [Note] InnoDB: The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2019-08-06 6:36:04 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-06 6:36:04 0 [Note] InnoDB: Uses event mutexes
2019-08-06 6:36:04 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-06 6:36:04 0 [Note] InnoDB: Number of pools: 1
2019-08-06 6:36:04 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-06 6:36:04 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-08-06 6:36:04 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-06 6:36:04 0 [Note] InnoDB: Setting file '.\ibdata1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-06 6:36:04 0 [Note] InnoDB: File '.\ibdata1' size is now 12 MB.
2019-08-06 6:36:04 0 [Note] InnoDB: Setting log file .\ib_logfile101 size to 50331648 bytes
2019-08-06 6:36:04 0 [Note] InnoDB: Setting log file .\ib_logfile1 size to 50331648 bytes
2019-08-06 6:36:04 0 [Note] InnoDB: Renaming log file .\ib_logfile101 to .\ib_logfile0
2019-08-06 6:36:04 0 [Note] InnoDB: New log files created, LSN=17992
2019-08-06 6:36:04 0 [Note] InnoDB: Doublewrite buffer not found: creating new
2019-08-06 6:36:04 0 [Note] InnoDB: Doublewrite buffer created
2019-08-06 6:36:04 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-06 6:36:04 0 [Note] InnoDB: Creating foreign key constraint system tables.
2019-08-06 6:36:04 0 [Note] InnoDB: Creating tablespace and datafile system tables.
2019-08-06 6:36:04 0 [Note] InnoDB: Creating sys_virtual system tables.
2019-08-06 6:36:04 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-06 6:36:04 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-06 6:36:04 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2019-08-06 6:36:04 0 [Note] InnoDB: Waiting for purge to start
2019-08-06 6:36:04 0 [Note] InnoDB: 10.4.7 started; log sequence number 0; transaction id 7
2019-08-06 6:36:04 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-06 6:36:04 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2019-08-06 6:36:04 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2019-08-06 6:36:04 0 [Note] Server socket created on IP: '::'.
2019-08-06 6:36:04 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
2019-08-06 6:36:04 0 [ERROR] Aborting
InnoDB: using atomic writes.
2019-08-06 6:36:24 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-06 6:36:24 0 [Note] InnoDB: Uses event mutexes
2019-08-06 6:36:24 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-06 6:36:24 0 [Note] InnoDB: Number of pools: 1
2019-08-06 6:36:24 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-06 6:36:24 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-08-06 6:36:24 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-06 6:36:24 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-06 6:36:24 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-06 6:36:24 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-06 6:36:24 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2019-08-06 6:36:24 0 [Note] InnoDB: Waiting for purge to start
2019-08-06 6:36:24 0 [Note] InnoDB: 10.4.7 started; log sequence number 113847; transaction id 9
2019-08-06 6:36:24 0 [Note] InnoDB: Loading buffer pool(s) from D:\tool\mysql\mariadb-10.4.7-winx64\data\ib_buffer_pool
2019-08-06 6:36:24 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-06 6:36:24 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2019-08-06 6:36:24 0 [Note] InnoDB: Buffer pool(s) load completed at 190806 6:36:24
2019-08-06 6:36:24 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2019-08-06 6:36:24 0 [Note] Server socket created on IP: '::'.
2019-08-06 6:36:24 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
2019-08-06 6:36:24 0 [ERROR] Aborting
InnoDB: using atomic writes.
2019-08-06 6:36:33 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2019-08-06 6:36:33 0 [Note] InnoDB: Uses event mutexes
2019-08-06 6:36:33 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-08-06 6:36:33 0 [Note] InnoDB: Number of pools: 1
2019-08-06 6:36:33 0 [Note] InnoDB: Using SSE2 crc32 instructions
2019-08-06 6:36:33 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2019-08-06 6:36:33 0 [Note] InnoDB: Completed initialization of buffer pool
2019-08-06 6:36:33 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2019-08-06 6:36:33 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2019-08-06 6:36:33 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2019-08-06 6:36:33 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2019-08-06 6:36:33 0 [Note] InnoDB: Waiting for purge to start
2019-08-06 6:36:33 0 [Note] InnoDB: 10.4.7 started; log sequence number 113856; transaction id 9
2019-08-06 6:36:33 0 [Note] InnoDB: Loading buffer pool(s) from D:\tool\mysql\mariadb-10.4.7-winx64\data\ib_buffer_pool
2019-08-06 6:36:33 0 [Note] Plugin 'FEEDBACK' is disabled.
2019-08-06 6:36:33 0 [ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
2019-08-06 6:36:33 0 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
2019-08-06 6:36:33 0 [Note] InnoDB: Buffer pool(s) load completed at 190806 6:36:33
2019-08-06 6:36:33 0 [Note] Server socket created on IP: '::'.
2019-08-06 6:36:33 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.db' doesn't exist
2019-08-06 6:36:33 0 [ERROR] Aborting
根据启动的错误提示,对数据库进行初始化安装
D:\xxxxxx\mariadb-10.4.7-winx64>.\bin\mysql_install_db
Default data directory is D:\xxxxxx\mariadb-10.4.7-winx64\data
Running bootstrap
2019-08-06 6:38:58 0 [Note] D:\xxxxxx\mariadb-10.4.7-winx64\bin\mysqld.exe (mysqld 10.4.7-MariaDB) starting as process 22976 ...
Removing default user
Creating my.ini file
Creation of the database was successful
再次启动,可以正常运行
脚本
.\bin\mysql.exe -u root
SET PASSWORD = PASSWORD('123');
grant all privileges on *.* to 'root'@'%' identified by '123' with GRANT OPTION;
flush privileges;
运行
D:\xxxxxx\mariadb-10.4.7-winx64>.\bin\mysql.exe -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 122
Server version: 10.4.7-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> SET PASSWORD = PASSWORD('123');
Query OK, 0 rows affected (0.012 sec)
MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' identified by '123' with GRANT OPTION;
Query OK, 0 rows affected (0.009 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.004 sec)
MariaDB [(none)]>
-- 创建数据库
drop database if exists tio_site_conf;
create database tio_site_conf default character set utf8mb4 collate utf8mb4_unicode_ci;
use tio_site_conf;
source tio_site_conf.sql;
drop database if exists tio_site_main;
create database tio_site_main default character set utf8mb4 collate utf8mb4_unicode_ci;
use tio_site_main;
source tio_site_main.sql;
drop database if exists tio_site_stat;
create database tio_site_stat default character set utf8mb4 collate utf8mb4_unicode_ci;
use tio_site_stat;
source tio_site_stat.sql;
drop database if exists tio_site_mg;
create database tio_site_mg default character set utf8mb4 collate utf8mb4_unicode_ci;
use tio_site_mg;
source tio_site_mg.sql;
最新评论 我的评论
t-io为本站提供HTTP、WebSocket、Socket、页面渲染与压缩等服务,nginx为本站提供反向代理服务
© 2017-2023 钛特云 版权所有 | 浙ICP备17032976号 | 浙公网安备 33011802002129号