Invalid Ubuntu case-insensitive binary log Modification

Source: Internet
Author: User

1. Ubuntu MySQL is case sensitive by default.

Set lower_case_table_names = 1 in my. CNF.

Setting and restarting MySQL does not work.

 


Mysql> show variables like 'lower _ case_table_names ';
+ ------------------------ + ------- +
| Variable_name | value |
+ ------------------------ + ------- +
| Lower_case_table_names | 0 |
+ ------------------------ + ------- +
1 row in SET (0.00 Sec)

2, add log-bin =/var/log/mysql-bin.log in my. CNF

Restart

Mysql> show variables like '% log_bin % ';
+ --------------------------------- + ------- +
| Variable_name | value |
+ --------------------------------- + ------- +
| Log_bin | off |
| Log_bin_trust_function_creators | off |
| SQL _log_bin | on |
+ --------------------------------- + ------- +
3 rows in SET (0.01 Sec)

That is to say, modification to my. CNF does not work for MySQL.

It may be that/etc/MySQL/My. CNF is not configured in MySQL.

Rename my. CNF to my_current.cnf to restart ....

However, when the MySQL service is restarted
[Email protected]: ~ #/Etc/init. d/MySQL restart
* Stopping MySQL database server mysqld warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
Warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
[OK]
Warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
* Starting MySQL database server mysqld warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
Warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
Warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
Warning: World-Writable Config File '/etc/MySQL/My. CNF' is ignored
Follow this warning command to modify my. CNF permission 744 and restart the service.

Invalid Ubuntu case-insensitive binary log Modification

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.