mariadb unknown variable basediir

Today I tried the use of mariadb, the configuration is basically the same as mysql, that is, there are several my.ini, just choose one, and then modify the configuration file.

[client]

#password= your_password

port= 3306

socket= E:/mariadb-10.1.18-winx64/tmp/mysql.sock

default-character-set=utf8

#default-storage-engine = MyISAM

# Here follows entries for some specific programs

 

# The MariaDB server

[mysqld]

port= 3306

socket= E:/mariadb-10.1.18-winx64/tmp/mysql.sock

basedir=E:/mariadb-10.1.18-winx64

datadir=E:/mariadb-10.1.18-winx64/data

character_set_server=utf8

skip-external-locking

#skip-grant-tables

key_buffer_size = 256M

max_allowed_packet = 1M

table_open_cache = 256

sort_buffer_size = 1M

read_buffer_size = 1M

read_rnd_buffer_size = 4M

myisam_sort_buffer_size = 64M

thread_cache_size = 8

query_cache_size= 16M

# Try number of CPU's*2 for thread_concurrency

thread_concurrency = 8

 

# Point the following paths to different dedicated disks

#tmpdir= /tmp/

 

# Replication Master Server (default)

# binary logging is required for replication

log-bin=mysql-bin

 

# binary logging format - mixed recommended

binlog_format=mixed

 

server-id= 1

 

# The username the slave will use for authentication when connecting

# to the master - required

#master-user     =   <username>

#

# The password the slave will authenticate with when connecting to

# the master - required

#master-password =   <password>

 

[mysqldump]

quick

max_allowed_packet = 16M

 

[mysql]

no-auto-rehash

# Remove the next comment character if you are not familiar with SQL

#safe-updates

 

[myisamchk]

key_buffer_size = 128M

sort_buffer_size = 128M

read_buffer = 2M

write_buffer = 2M

 

[mysqlhotcopy]

interactive-timeout

 

[WinMySQLAdmin]   

Server=E:/mariadb-10.1.18-winx64/bin/mysqld.exe

 

At the beginning of the configuration, basedir was also added under the client, which caused the error of unknown variable basedir at startup. Delete the basedir under the client. It must be configured under mysqld.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326478744&siteId=291194637