my.cnf

Gtid Position difference between MariaDB version

坚强是说给别人听的谎言 提交于 2021-01-29 18:53:16
问题 I got an issue in our project during the MariaDB upgrade from 10.2.18 to 10.2.27 in my project, which caused problem during the start of Database Replication. On analyzing, I could see a weird behavior during MariaDB Installation with the below my.cnf. I tried to reproduce the scenario as simple as possible by a shell script with the below simplified my.cnf file. [mysqld] server-id=1 log-bin=binary-log. binlog-ignore-db=mysql binlog-ignore-db=performance_schema from where I could see the

Could not set thread-stack size in mysql

牧云@^-^@ 提交于 2021-01-27 07:38:18
问题 I'm trying to increase thread-stack variable. I can do it successfully using command-line option as such: /usr/sbin/mysqld --thread-stack=256k I can also do it using configuration files /etc/init/mysql.conf or /etc/init.d/mysql : thread_stack=262144 thread_stack=256k thread-stack=256k thread-stack=262144 However, setting through /etc/mysql/my.cnf doesn't work. show variables like'%thread_stack%'; still shows the default 196608 . Why does setting through /etc/mysql/my.cnf not work? How do I

Why does `log_slow_queries` break `my.cnf`?

人走茶凉 提交于 2020-01-12 03:09:12
问题 Why can't I use slow_query_log on MySQL 5.6 on CentOS 6.4? [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock ... ## Logging ## *** THESE LOGS WORK JUST FINE *** log_error = /var/log/mysql/error.log general_log_file = /var/log/mysql/mysql.log general_log = 1 ## *** THESE LOGS BREAK MYSQL *** #log_slow_queries = /var/log/mysql/slow.log #long_query_time = 5 #log-queries-not-using-indexes Here's the /var/log/mysql directory: $ ls -lh total 100K -rw-r----- 1 mysql root 47K Nov 22 06

how to add date to mysql error log

ⅰ亾dé卋堺 提交于 2020-01-04 02:05:14
问题 Mysql error logs only have a number next to them and the time they were created, I need to format it so that it also includes the date, how should I do it? 130207 2:25:29 [Note] Plugin 'FEDERATED' is disabled. 130207 2:25:29 InnoDB: The InnoDB memory heap is disabled 130207 2:25:29 InnoDB: Mutexes and rw_locks use InnoDB's own implementation 130207 2:25:29 InnoDB: Compressed tables use zlib 1.2.3 130207 2:25:29 InnoDB: Using Linux native AIO 130207 2:25:30 InnoDB: Initializing buffer pool,

Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root

那年仲夏 提交于 2019-12-31 08:16:03
问题 I am not sure how to fix this: dyn-72-33-214-45:python mona$ sudo /usr/local/mysql/bin/mysqld stop 2014-09-06 09:49:04 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2014-09-06 09:49:04 22992 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.6.15-osx10.7-x86_64/data/ is case insensitive 2014-09-06 09:49:04 22992 [ERROR] Fatal error: Please read

InnoDB tables exist in MySQL but says they do not exist after copying database to new server

天涯浪子 提交于 2019-12-30 02:31:25
问题 I used mysqldump to export my database and then I imported it into MySQL on my other server. I can now see all my tables if I do "show tables" but I can't actually select from or describe any of them. ERROR 1146 (42S02): Table 'mydatabase.user' doesn't exist All of my tables are InnoDB. I saw one issue people had where they were using old_passwords, so I explicitly set that to 0 in my.cnf and I made sure all of the passwords in the mysql table were 41 hexadecimal digits as they should be for

MySQL my.cnf file - Found option without preceding group

江枫思渺然 提交于 2019-12-28 01:56:28
问题 I'm trying to connect to my DB in Ubuntu remotely but I receive error message when trying to mysql -u root -p : Found option without preceding group in config file: /etc/mysql/my.cnf at line: 1 my.cnf looks like: [mysqld] user = mysql socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp bind-address = 0.0.0.0 key_buffer = 16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 myisam-recover = BACKUP query_cache_limit = 1M query

MAMP MySQL not recognizing my.cnf values in OSX

人走茶凉 提交于 2019-12-21 20:20:53
问题 Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name

MAMP MySQL not recognizing my.cnf values in OSX

霸气de小男生 提交于 2019-12-21 20:20:05
问题 Trying to go UTF8 permanently and can't get MAMP's install of MySQL to recognize my.cnf values. MAMP Version 2.0.5 (2.0.5) MySQL 5.5.9 my.cnf file: [client] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8 default-collation=utf8_general_ci collation_server=utf8_general_ci character_set_server=utf8 init-connect='SET NAMES utf8' Location of file: /Applications/MAMP/Library/Conf/ MySQL varibles on startup: mysql> show variables where variable_name

ubuntu修改my.cnf文件导致mysql启动不了

柔情痞子 提交于 2019-12-20 16:38:44
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 最近在虚拟机上配置mysql,由于安装后字符集显示为 查询一下show variables like 'character%'; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | latin1 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | latin1 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+