当前位置 : 主页 > 编程语言 > java >

mysql数据库文件夹指向自定义的位置

来源:互联网 收集:自由互联 发布时间:2022-07-04
mysql数据库文件夹指向自定义的位置 修改 ​​C:\ProgramData\MySQL\MySQL Server 5.6​​​ 下面的​​my.ini​​文件 [mysqld] # The next three options are mutually exclusive to SERVER_PORT below. # skip-networking #

mysql数据库文件夹指向自定义的位置


修改 ​​C:\ProgramData\MySQL\MySQL Server 5.6​​​ 下面的​​my.ini​​文件

[mysqld]

# The next three options are mutually exclusive to SERVER_PORT below.
# skip-networking
# enable-named-pipe
# The Pipe the MySQL Server will use
# socket=mysql

# The TCP/IP Port the MySQL Server will listen on
port=3306

# Path to installation directory. All paths are usually resolved relative to this.
basedir="C:\Program Files\MySQL\MySQL Server 5.6\"

# Path to the database root
datadir="E:\Database\data"
###修改该位置为你的数据库地址

# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=utf8

# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

# Enable Windows Authentication
# plugin-load=authentication_windows.dll


上一篇:MySql 内存占用过高 解决办法
下一篇:没有了
网友评论