MySql 数据库 常见小问题:
1.本来昨天可以连接上,但是今天不能用了,百度了下,解决办法:
cmd --> cd D:\Program Files\MySQL\MySQL Server 5.5\bin (mysql安装目录下的bin)
--> mysqld -nt -console
该命令能成功启动 mysql服务,然后可以正常登录.
2.My,ini 配置文件 (这是我电脑中安装的mysql的配置文件)
# CLIENT SECTION
[client]
port=3306
[mysql]
default-character-set=utf8
# SERVER SECTION
[mysqld]
port=3306
#Path to installation directory.
basedir="D:/Program Files/MySQL/MySQL Server 5.5/"
#Path to the database root
datadir="D:/ProgramData/MySQL/MySQL Server 5.5/Data/"
character-set-server=utf8
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=0
table_cache=256
tmp_table_size=34M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=67M
key_buffer_size=54M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
#*** INNODB Specific options ***
# skip-innodb
innodb_additional_mem_pool_size=3M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=2M
innodb_buffer_pool_size=104M
innodb_log_file_size=52M
innodb_thread_concurrency=10