These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for New server with MySQL 5.5.27 , creating users on new virtual servers fails on the new forum.
Hello,
I've just installed a new server with MySQL 5.5.27. When I try to restore a Virtualserver backup from another server, or when I try to create a new virtual server I get an error:
Creating MySQL login .. .. MySQL database failed! : SQL insert into user (host, user, password) values ('%', 'xxxxxxx', password('Hf12HLKYCfcrXEfL')) failed : Field 'ssl_cipher' doesn't have a default value at /usr/libexec/webmin/web-lib-funcs.pl line 1360.
Here's MySQL my.cnf file, generated on https://tools.percona.com/
[mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid # Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208 # Configuration name linux07 generated for rogerio.brito@intercode.com.br at 2012-08-29 15:29:21 [mysql] # CLIENT # port = 3306 socket = /var/lib/mysql/mysql.sock [mysqld] # GENERAL # user = mysql default_storage_engine = InnoDB socket = /var/lib/mysql/mysql.sock pid_file = /var/lib/mysql/mysql.pid # CONFIGURACOES ORIGINAIS symbolic-links=0 thread_concurrency = 8 myisam_sort_buffer_size = 64M read_rnd_buffer_size = 8M read_buffer_size = 2M sort_buffer_size = 2M table_cache = 512 key_buffer = 384M # MyISAM # key_buffer_size = 32M myisam_recover = FORCE,BACKUP # SAFETY # max_allowed_packet = 16M max_connect_errors = 1000000 sql_mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY sysdate_is_now = 1 # DATA STORAGE # datadir = /var/lib/mysql/ # BINARY LOGGING # log_bin = /var/lib/mysql/mysql-bin expire_logs_days = 14 sync_binlog = 1 # CACHES AND LIMITS # tmp_table_size = 32M max_heap_table_size = 32M query_cache_type = 0 query_cache_size = 32M max_connections = 500 thread_cache_size = 50 open_files_limit = 65535 table_definition_cache = 4096 table_open_cache = 4096 # INNODB # innodb_flush_method = O_DIRECT innodb_log_files_in_group = 2 innodb_log_file_size = 256M innodb_flush_log_at_trx_commit = 1 innodb_file_per_table = 1 innodb_buffer_pool_size = 6G # LOGGING # log_error = /var/lib/mysql/mysql-error.log log_queries_not_using_indexes = 1 slow_query_log = 1 slow_query_log_file = /var/lib/mysql/mysql-slow.log
What can I do? Thank you
Hmm, I haven't run into that error before.
What distro/version is it that you're using?
-Eric
Hi Eric,
It's a RedHat Enterprise 6.3, using PHP/MySQL from the remi repository.
Thanks
-Rogerio
Hello Eric,
The problem was the line bellow on the my.cnf file.
sql_mode = STRICT_TRANS_TABLES, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_AUTO_VALUE_ON_ZERO, NO_ENGINE_SUBSTITUTION, NO_ZERO_DATE, NO_ZERO_IN_DATE, ONLY_FULL_GROUP_BY
After commenting this line it worked.
Thanks
-Rogerio
This helped me thanks Rogerio