LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-30-2016, 10:25 AM   #1
Desertwulf
LQ Newbie
 
Registered: Apr 2016
Distribution: Slackware
Posts: 21

Rep: Reputation: Disabled
minor issue mariadb and phpmyadmin (14.2)


I got some issue figuring out what is wrong with my phpmyadmin and mariadb config.

I can connect to mariadb on cli, phpmyadmin fails me, with root user and another freshly setup mysql user with every permission granted.

Quote:
#2002 - Permission denied — The server is not responding (or the local server's socket is not correctly configured).
Quote:
mysqli_real_connect(): (HY000/2002): Permission denied
Quote:
MariaDB [(none)]> status
--------------
mysql Ver 15.1 Distrib 10.0.27-MariaDB, for Linux (x86_64) using readline 5.1

Connection id: 6
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server: MariaDB
Server version: 10.0.27-MariaDB MariaDB Server
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 3 hours 4 min 36 sec
The socket is there and I altered my php.ini on several lines to point to that location (but maybe that is not even necessary).

Quote:
root@grooves:~# ls -lA /var/lib/mysql/
insgesamt 110628
-rw-rw---- 1 mysql mysql 16384 Sep 30 13:57 aria_log.00000001
-rw-rw---- 1 mysql mysql 52 Sep 30 13:57 aria_log_control
-rw-r----- 1 mysql root 1486 Sep 30 14:10 grooves.err
-rw-rw---- 1 mysql mysql 50331648 Sep 30 14:10 ib_logfile0
-rw-rw---- 1 mysql mysql 50331648 Sep 30 13:57 ib_logfile1
-rw-rw---- 1 mysql mysql 12582912 Sep 30 14:10 ibdata1
-rw-rw---- 1 mysql mysql 0 Sep 30 14:10 multi-master.info
drwx------ 2 mysql root 4096 Sep 30 13:57 mysql/
srwxrwxrwx 1 mysql mysql 0 Sep 30 14:10 mysql.sock=
drwx------ 2 mysql mysql 4096 Sep 30 13:57 performance_schema/
drwx------ 2 mysql root 4096 Sep 30 13:57 test/
php.ini lines:

Quote:
pdo_mysql.default_socket= /var/lib/mysql/mysql.sock
mysql.default_socket = /var/lib/mysql/mysql.sock
mysqli.default_socket = /var/lib/mysql/mysql.sock
Is anyone able to help me with this issue? Would gladly deliver more information to get this one working.

(Btw. I once setup mysql wrong and then followed the instructions from ponce in here to reset and do a fresh install, but without luck so far)
 
Old 09-30-2016, 10:54 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
Normally, phpmyadmin will just work without additional changes in php.ini
can you post related log messages from /var/log/httpd/access_log and error_log ?
 
Old 09-30-2016, 11:15 AM   #3
Desertwulf
LQ Newbie
 
Registered: Apr 2016
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: Disabled
I do not see any obvious issues in these files, here are the recent entries

error_log
Quote:
[Fri Sep 30 12:34:34.695479 2016] [mpm_event:notice] [pid 1213:tid 139649147299712] AH00489: Apache/2.4.20 (Unix) PHP/5.6.26 configured -- resuming normal operations
[Fri Sep 30 12:34:34.695801 2016] [core:notice] [pid 1213:tid 139649147299712] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 30 12:55:42.651409 2016] [core:error] [pid 1213:tid 139649147299712] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid
[Fri Sep 30 12:55:42.651454 2016] [mpm_event:notice] [pid 1213:tid 139649147299712] AH00491: caught SIGTERM, shutting down
[Fri Sep 30 12:58:34.713646 2016] [mpm_event:notice] [pid 1210:tid 140620738451328] AH00489: Apache/2.4.20 (Unix) PHP/5.6.26 configured -- resuming normal operations
[Fri Sep 30 12:58:34.713941 2016] [core:notice] [pid 1210:tid 140620738451328] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 30 13:17:50.506173 2016] [mpm_event:notice] [pid 1210:tid 140620738451328] AH00494: SIGHUP received. Attempting to restart
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Fri Sep 30 13:17:50.557941 2016] [mpm_event:notice] [pid 1210:tid 140620738451328] AH00489: Apache/2.4.20 (Unix) PHP/5.6.26 configured -- resuming normal operations
[Fri Sep 30 13:17:50.557983 2016] [core:notice] [pid 1210:tid 140620738451328] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 30 13:28:56.633117 2016] [core:error] [pid 1210:tid 140620738451328] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid
[Fri Sep 30 13:28:56.633168 2016] [mpm_event:notice] [pid 1210:tid 140620738451328] AH00491: caught SIGTERM, shutting down
[Fri Sep 30 13:29:51.673347 2016] [mpm_event:notice] [pid 1213:tid 140587718563712] AH00489: Apache/2.4.20 (Unix) PHP/5.6.26 configured -- resuming normal operations
[Fri Sep 30 13:29:51.673672 2016] [core:notice] [pid 1213:tid 140587718563712] AH00094: Command line: '/usr/sbin/httpd'
[Fri Sep 30 14:08:54.876250 2016] [core:error] [pid 1213:tid 140587718563712] (2)No such file or directory: AH00095: failed to remove PID file /var/run/httpd.pid
[Fri Sep 30 14:08:54.876376 2016] [mpm_event:notice] [pid 1213:tid 140587718563712] AH00491: caught SIGTERM, shutting down
[Fri Sep 30 14:10:13.688023 2016] [mpm_event:notice] [pid 1215:tid 139837889505152] AH00489: Apache/2.4.20 (Unix) PHP/5.6.26 configured -- resuming normal operations
[Fri Sep 30 14:10:13.688377 2016] [core:notice] [pid 1215:tid 139837889505152] AH00094: Command line: '/usr/sbin/httpd'
except from access_log
Quote:
127.0.0.1 - - [30/Sep/2016:17:06:08 +0200] "GET /phpmyadmin/index.php HTTP/1.1" 200 3035
127.0.0.1 - - [30/Sep/2016:17:06:09 +0200] "GET /phpmyadmin/js/whitelist.php?lang=en&db=&token=2d27889a3115fce31fe87478e525ec36&v=4.6.4 HTTP/1.1" 200 475
127.0.0.1 - - [30/Sep/2016:17:06:09 +0200] "GET /phpmyadmin/js/messages.php?lang=en&db=&token=2d27889a3115fce31fe87478e525ec36&v=4.6.4 HTTP/1.1" 200 8424
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "POST /phpmyadmin/index.php HTTP/1.1" 200 3161
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=console.js&v=4.6.4 HTTP/1.1" 200 10706
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/whitelist.php?lang=en&db=&token=bdcf6ab26d7232dec7dc9d3319d7f416&v=4.6.4 HTTP/1.1" 200 475
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=jquery/jquery.debounce-1.0.5.js&scripts%5B%5D=menu-resizer.js&scripts%5B%5D=cross_framing_protection.js&scripts%5B%5D=rte.js&sc$
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=indexes.js&scripts%5B%5D=common.js&scripts%5B%5D=page_settings.js&s cripts%5B%5D=codemirror/lib/codemirror.js&scripts%5B%5D=code$
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/phpmyadmin.css.php?nocache=2942762744ltr HTTP/1.1" 200 20060
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/messages.php?lang=en&db=&token=bdcf6ab26d7232dec7dc9d3319d7f416&v=4.6.4 HTTP/1.1" 200 8424
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=jquery/jquery-2.1.4.min.js&scripts%5B%5D=sprintf.js&scripts%5B%5D=ajax.js&scripts%5B%5D=keyhandler.js&scripts%5B%5 D=jquery/jque$
127.0.0.1 - - [30/Sep/2016:17:06:14 +0200] "GET /phpmyadmin/js/get_image.js.php?theme=pmahomme&v=4.6.4 HTTP/1.1" 200 1833
127.0.0.1 - - [30/Sep/2016:17:06:32 +0200] "POST /phpmyadmin/index.php HTTP/1.1" 200 3162
127.0.0.1 - - [30/Sep/2016:17:06:32 +0200] "GET /phpmyadmin/js/whitelist.php?lang=en&db=&token=c9753893c2b934e14ead0b9237466214&v=4.6.4 HTTP/1.1" 200 475
127.0.0.1 - - [30/Sep/2016:17:06:32 +0200] "GET /phpmyadmin/js/messages.php?lang=en&db=&token=c9753893c2b934e14ead0b9237466214&v=4.6.4 HTTP/1.1" 200 8424
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/index.php HTTP/1.1" 200 3035
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/whitelist.php?lang=en&db=&token=c7827865140045b60526f1da0dfe690a&v=4.6.4 HTTP/1.1" 200 475
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/messages.php?lang=en&db=&token=c7827865140045b60526f1da0dfe690a&v=4.6.4 HTTP/1.1" 200 8424
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/phpmyadmin.css.php?nocache=2942762744ltr HTTP/1.1" 200 20060
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=jquery/jquery.debounce-1.0.5.js&scripts%5B%5D=menu-resizer.js&scripts%5B%5D=cross_framing_protection.js&scripts%5B%5D=rte.js&sc$
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=jquery/jquery-2.1.4.min.js&scripts%5B%5D=sprintf.js&scripts%5B%5D=ajax.js&scripts%5B%5D=keyhandler.js&scripts%5B%5 D=jquery/jque$
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=console.js&v=4.6.4 HTTP/1.1" 200 10706
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/get_scripts.js.php?scripts%5B%5D=indexes.js&scripts%5B%5D=common.js&scripts%5B%5D=page_settings.js&s cripts%5B%5D=codemirror/lib/codemirror.js&scripts%5B%5D=code$
127.0.0.1 - - [30/Sep/2016:17:06:42 +0200] "GET /phpmyadmin/js/get_image.js.php?theme=pmahomme&v=4.6.4 HTTP/1.1" 200 1833
127.0.0.1 - - [30/Sep/2016:17:06:51 +0200] "POST /phpmyadmin/index.php HTTP/1.1" 200 3160
127.0.0.1 - - [30/Sep/2016:17:06:51 +0200] "GET /phpmyadmin/js/whitelist.php?lang=en&db=&token=26d13fb945a5ae2eaf77a9ad34d0135c&v=4.6.4 HTTP/1.1" 200 475
127.0.0.1 - - [30/Sep/2016:17:06:51 +0200] "GET /phpmyadmin/js/messages.php?lang=en&db=&token=26d13fb945a5ae2eaf77a9ad34d0135c&v=4.6.4 HTTP/1.1" 200 8424
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/index.php HTTP/1.1" 200 3064
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/js/codemirror/lib/codemirror.css?v=4.6.4 HTTP/1.1" 200 7771
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/themes/pmahomme/jquery/jquery-ui-1.11.4.css HTTP/1.1" 200 35020
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/js/codemirror/addon/hint/show-hint.css?v=4.6.4 HTTP/1.1" 200 662
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/js/codemirror/addon/lint/lint.css?v=4.6.4 HTTP/1.1" 200 3068
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/phpmyadmin.css.php?nocache=2942762744ltr HTTP/1.1" 200 20060
127.0.0.1 - - [30/Sep/2016:17:21:36 +0200] "GET /phpmyadmin/themes/pmahomme/css/printview.css?v=4.6.4 HTTP/1.1" 200 2611
 
Old 09-30-2016, 12:36 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i leave the socket values empty
Some reference: http://stackoverflow.com/questions/1...r-through-sock
 
Old 09-30-2016, 01:55 PM   #5
Desertwulf
LQ Newbie
 
Registered: Apr 2016
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: Disabled
I tried the script posted on stack overflow to see if and where a connection is possible... no luck for localhost, localhost 3306, 127.0.01 and 127.0.0.1.3306

this is the first part of that script

Quote:
Checking for mysqld process: root 1117 1 0 14:10 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid --skip-networking mysql 1204 1117 0 14:10 ? 00:00:13 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --skip-networking --log-error=/var/lib/mysql/grooves.err --pid-file=/var/run/mysql/mysql.pid --socket=/var/lib/mysql/mysql.sock matthias 1609 1606 0 17:01 ? 00:00:04 /usr/libexec/mysqld --defaults-file=/home/matthias/.local/share/akonadi/mysql.conf --datadir=/home/matthias/.local/share/akonadi/db_data/ --socket=/tmp/akonadi-matthias.77jGRS/mysql.socket
does it expect a mysql socket in that tmp subfolder? There are two files akonadiserver.socket and mysql.socket. Owner is my local user, both with x bit set and they seem accessible since the timestamp is a recent one.
 
Old 10-02-2016, 05:51 AM   #6
Desertwulf
LQ Newbie
 
Registered: Apr 2016
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: Disabled
I saw in my hostname.err (/var/lib/mysql/hostname.err) the following line, does iot mean my socket expects connections on port 0? Where can I switch from 0 to 3306 or something else?

Code:
Version: '10.0.27-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 0  MariaDB Server
 
  


Reply

Tags
mariadb, mysql, phpmyadmin



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
LXer: Install LAMP Stack ( Apache, MariaDB, php, phpMyAdmin) on Fedora 24 LXer Syndicated Linux News 0 07-07-2016 09:20 AM
LXer: Install LEMP Stack (Nginx, PHP, MariaDB & phpMyAdmin) on Ubuntu 16.04 LXer Syndicated Linux News 0 05-04-2016 02:22 AM
LXer: How to install phpMyAdmin with HHVM, Nginx and MariaDB on an Ubuntu 14.04 VPS LXer Syndicated Linux News 0 09-01-2015 08:20 AM
phpMyadmin config.inc.php issue v 4.3.3 on mariadb 10.0.14 lost_time Linux - Software 1 12-28-2014 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:12 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