LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2015, 10:58 PM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
mysql log shows [ERROR] messages


I've installed xampp x64 v5.6.14-0 on Centos 7.1 x64.

When I open webpages, I got "MySQL Connect Error!!!" or 1045 error message.

1. The error parts of the contents of the MYSQL log is here;

Quote:
2015-11-14 17:59:35 2983 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/localhost.localdomain.pid ended
2015-11-14 17:59:38 3573 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
151114 17:59:38 [Note] InnoDB: Using mutexes to ref count buffer pool pages
151114 17:59:38 [Note] InnoDB: The InnoDB memory heap is disabled
151114 17:59:38 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
151114 17:59:38 [Note] InnoDB: Memory barrier is not used
151114 17:59:38 [Note] InnoDB: Compressed tables use zlib 1.2.8
151114 17:59:38 [Note] InnoDB: Using CPU crc32 instructions
151114 17:59:38 [Note] InnoDB: Initializing buffer pool, size = 16.0M
151114 17:59:38 [Note] InnoDB: Completed initialization of buffer pool
151114 17:59:38 [Note] InnoDB: Highest supported file format is Barracuda.
151114 17:59:38 [Note] InnoDB: 128 rollback segment(s) are active.
151114 17:59:38 [Note] InnoDB: Waiting for purge to start
151114 17:59:38 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 1625766
151114 17:59:38 [Note] Server socket created on IP: '::'.
151114 17:59:38 [ERROR] Missing system table mysql.roles_mapping; please run mysql_upgrade to create it
151114 17:59:38 [ERROR] Incorrect definition of table mysql.event: expected column 'sql_mode' at position 14 to have type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_ FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAX DB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALU E_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZE RO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_ PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH'), found type set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY',' NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTI ONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_B ACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_A
151114 17:59:38 [ERROR] Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
151114 17:59:38 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
151114 17:59:38 [Note] /opt/lampp/sbin/mysqld: ready for connections.
Version: '10.0.17-MariaDB' socket: '/opt/lampp/var/mysql/mysql.sock' port: 3306 Source distribution
2. my.cnf is here;

Code:
[client]
port		= 3306
socket		= /opt/lampp/var/mysql/mysql.sock
[mysqld]
user = mysql
port=3306
socket		= /opt/lampp/var/mysql/mysql.sock
skip-external-locking
key_buffer = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
plugin_dir = /opt/lampp/lib/mysql/plugin/
server-id	= 1
innodb_data_home_dir = /opt/lampp/var/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /opt/lampp/var/mysql/
innodb_buffer_pool_size = 16M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

!include /opt/lampp/mysql/my.cnf
Any helpful comments would be highly appreciated.
Thnaks in advance.
 
Old 11-14-2015, 11:04 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
What does Google say about this error?
Did you run mysql_upgrade to create the missing system table mysql.roles_mapping?
 
1 members found this post helpful.
Old 11-14-2015, 11:42 PM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
I'm googleing now, and the result of "mysql_upgrade" is here.

Quote:
[root@localhost ~]# mysql_upgrade
Version check failed. Got the following error when calling the 'mysql' command line client
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
FATAL ERROR: Upgrade failed
 
Old 11-15-2015, 12:11 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by windstory View Post
I'm googleing now, and the result of "mysql_upgrade" is here.
Permissions not set up correctly?
Or you need to run the upgrade under a different identity?
 
1 members found this post helpful.
Old 11-15-2015, 12:26 AM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
This error occurred.

Quote:
[root@localhost ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
 
Old 11-16-2015, 04:50 AM   #6
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Re-installed xampp and solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using grep to output error messages in /var/log/messages and using a loop? Billy_6052 Linux - Server 4 12-14-2014 11:01 AM
/var/log/messages shows IN=eth0 OUT soumen1974 Linux - Networking 2 01-30-2009 05:28 AM
/var/log/messages is empty, and also dmesg shows nothing beagle2 Linux - General 5 11-08-2005 08:12 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 12:34 AM
/var/log/messages shows failed login attempts... plan9 Linux - Security 8 08-08-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration