LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-17-2015, 10:54 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 489

Rep: Reputation: 36
ERROR 1045 (28000): Access denied for user 'root'@'localhost'


I've install xampp-linux-x64-5.6.14-3 on Scientific Linux 7.1 x64.

After installation of xampp, I tried to open mysql, and I got this error. This is the error messages and what I tried.

Quote:
[root@localhost ~]# mysql -u root mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[root@localhost ~]# lampp stopmysql
XAMPP: Stopping MySQL...ok.
[root@localhost ~]# cd /opt/lampp/bin
[root@localhost bin]# mysqld_safe --skip-grant-tables
2015-11-17 11:39:09 8183 mysqld_safe Logging to '/opt/lampp/var/localhost.localdomain.err'.
2015-11-17 11:39:10 8183 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var
2015-11-17 11:39:12 8183 mysqld_safe mysqld from pid file /opt/lampp/var/localhost.localdomain.pid ended
[root@localhost bin]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2 "No such file or directory")
And the contents of the '/opt/lampp /var/localhost.localdomain.err' is this.

Quote:
2015-11-17 11:39:10 8183 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var
2015-11-17 11:39:10 139903951222592 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
2015-11-17 11:39:10 139903951222592 [Note] /opt/lampp/sbin/mysqld (mysqld 10.1.8-MariaDB) starting as process 8327 ...
2015-11-17 11:39:10 139903951222592 [ERROR] mysqld: Can't create/write to file '/opt/lampp/var/aria_log_control' (Errcode: 13 "Permission denied")
2015-11-17 11:39:10 139903951222592 [ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '/opt/lampp/var/aria_log_control'
2015-11-17 11:39:10 139903951222592 [ERROR] Plugin 'Aria' init function returned error.
2015-11-17 11:39:10 139903951222592 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Memory barrier is not used
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Compressed tables use zlib 1.2.8
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Using CPU crc32 instructions
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Completed initialization of buffer pool
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-17 11:39:10 7f3ded50b740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_index_stats'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_index_stats"', ignored.
2015-11-17 11:39:10 7f3ded50b740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_table_stats'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_table_stats"', ignored.
2015-11-17 11:39:10 7f3ded50b740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_master_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_master_info"', ignored.
2015-11-17 11:39:10 7f3ded50b740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_relay_log_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_relay_log_info"', ignored.
2015-11-17 11:39:10 7f3ded50b740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_worker_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:10 139903951222592 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_worker_info"', ignored.
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Waiting for purge to start
2015-11-17 11:39:10 139903951222592 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1625110
2015-11-17 11:39:10 139903568430848 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-17 11:39:10 139903951222592 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-17 11:39:10 139903951222592 [ERROR] Aria engine is not enabled or did not start. The Aria engine must be enabled to continue as mysqld was configured with --with-aria-tmp-tables
2015-11-17 11:39:10 139903951222592 [ERROR] Aborting

2015-11-17 11:39:12 8183 mysqld_safe mysqld from pid file /opt/lampp/var/localhost.localdomain.pid ended
2015-11-17 11:39:34 8354 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var
2015-11-17 11:39:35 139917699434304 [Note] Using unique option prefix 'key_buffer' is error-prone and can break in the future. Please use the full name 'key_buffer_size' instead.
2015-11-17 11:39:35 139917699434304 [Note] /opt/lampp/sbin/mysqld (mysqld 10.1.8-MariaDB) starting as process 8496 ...
2015-11-17 11:39:35 139917699434304 [ERROR] mysqld: Can't create/write to file '/opt/lampp/var/aria_log_control' (Errcode: 13 "Permission denied")
2015-11-17 11:39:35 139917699434304 [ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '/opt/lampp/var/aria_log_control'
2015-11-17 11:39:35 139917699434304 [ERROR] Plugin 'Aria' init function returned error.
2015-11-17 11:39:35 139917699434304 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Memory barrier is not used
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Compressed tables use zlib 1.2.8
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Using CPU crc32 instructions
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Completed initialization of buffer pool
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-17 11:39:35 7f4120c5c740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_index_stats'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_index_stats"', ignored.
2015-11-17 11:39:35 7f4120c5c740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/innodb_table_stats'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Tablespace open failed for '"mysql"."innodb_table_stats"', ignored.
2015-11-17 11:39:35 7f4120c5c740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_master_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_master_info"', ignored.
2015-11-17 11:39:35 7f4120c5c740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_relay_log_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_relay_log_info"', ignored.
2015-11-17 11:39:35 7f4120c5c740 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Could not find a valid tablespace file for 'mysql/slave_worker_info'. See http://dev.mysql.com/doc/refman/5.6/...-datadict.html for how to resolve the issue.
2015-11-17 11:39:35 139917699434304 [ERROR] InnoDB: Tablespace open failed for '"mysql"."slave_worker_info"', ignored.
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Waiting for purge to start
2015-11-17 11:39:35 139917699434304 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1625120
2015-11-17 11:39:35 139917317355264 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-17 11:39:35 139917699434304 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-17 11:39:35 139917699434304 [ERROR] Aria engine is not enabled or did not start. The Aria engine must be enabled to continue as mysqld was configured with --with-aria-tmp-tables
2015-11-17 11:39:35 139917699434304 [ERROR] Aborting

2015-11-17 11:39:37 8354 mysqld_safe mysqld from pid file /opt/lampp/var/localhost.localdomain.pid ended

Any helpful comments would be highly appreciated.
Thanks in advance.
 
Old 11-17-2015, 11:04 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Code:
Can't create/write to file '/opt/lampp/var/aria_log_control' (Errcode: 13 "Permission denied")
Check permissions:owner on /opt/lampp/var ?
 
1 members found this post helpful.
Old 11-17-2015, 11:15 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Habitual/

The "permissionswner on /opt/lampp/var" is here;

Quote:
[root@localhost ~]# ll /opt/lampp/var
total 12
drwxrwxr-x. 6 mysql mysql 4096 Nov 17 12:11 mysql
drwxr-xr-x. 4 root root 32 Nov 17 12:11 perl
drwxr-xr-x. 2 daemon daemon 26 Nov 17 12:11 proftpd
-rw-r--r--. 1 root root 6440 Oct 14 2012 proftpd.delay
drwxr-xr-x. 2 root root 6 Nov 17 12:11 run
 
Old 11-17-2015, 12:35 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
SELinux enabled on this host?
 
1 members found this post helpful.
Old 11-17-2015, 08:40 PM   #5
windstory
Member
 
Registered: Nov 2008
Posts: 489

Original Poster
Rep: Reputation: 36
Habitual/

Thanks, I disabled it.
 
Old 11-17-2015, 09:02 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by windstory View Post
Habitual/

Thanks, I disabled it.
Ack. That's not a fix.

https://blogs.oracle.com/jsmyth/entry/selinux_and_mysql

shows something like:
Code:
semanage port -a -t mysqld_port_t -p tcp 3306
semanage fcontext -a -t mysqld_db_t "/opt/lampp/var(/.*)?"
restorecon -Rv /opt/lampp/var
If it's an internal host and not exposed to the internet, disabling I guess is ok.
But it's not something I'd encourage on forward-facing computers exposed to the internet.

Hope that Helps.

Compare to https://phe1129.wordpress.com/2012/0...er-on-selinux/

I just gurgled "Mysql selinux" w\out the quotes.

Last edited by Habitual; 11-17-2015 at 09:09 PM.
 
  


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
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) samnjugu Linux - Software 12 01-22-2013 06:22 AM
[SOLVED] ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) jsaravana87 Linux - Server 2 09-02-2011 10:22 AM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) ShaqDiesel Linux - Server 1 09-11-2008 11:49 PM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) S canegames Debian 11 07-18-2007 12:57 PM
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) mohtasham1983 General 2 04-02-2007 06:36 PM

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

All times are GMT -5. The time now is 01:01 AM.

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