LinuxQuestions.org
Visit Jeremy's Blog.
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 07-04-2019, 06:22 AM   #1
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 56

Rep: Reputation: 17
mysql_install_db (mariadb-10.4.6) on slackware64-current is not working


Hi,

While installing an initial database:
Code:
# mysql_install_db --user=mysql                             
chown: impossível aceder a '/usr/lib64/mysql/plugin/auth_pam_tool_dir': No such file or directory
Cannot change ownership of the '/usr/lib64/mysql/plugin/auth_pam_tool_dir' directory
 to the 'mysql' user. Check that you have the necessary permissions and try again.
What am I missing here?

Thank you,
Miguel

Last edited by msantinho; 07-04-2019 at 07:22 AM.
 
Old 07-04-2019, 06:43 AM   #2
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
It seems that newest mariadb change this script and add some PAM related setups. As Slackware doesn't have PAM at all we probably should patch this part of script and rebuild package.
As quick and dirty fix you can delete/hash those lines from mysql_install_db:
Code:
 if test $? -ne 0
  then
      echo "Cannot change ownership of the '$pamtooldir/auth_pam_tool_dir' directory"
      echo " to the '$user' user. Check that you have the necessary permissions and try again."
      exit 1
  fi
In my copy it begins at 471 line.
 
4 members found this post helpful.
Old 07-04-2019, 07:21 AM   #3
msantinho
Member
 
Registered: Oct 2005
Location: Lisbon
Distribution: Slackware
Posts: 56

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Labinnah View Post
It seems that newest mariadb change this script and add some PAM related setups. As Slackware doesn't have PAM at all we probably should patch this part of script and rebuild package.
As quick and dirty fix you can delete/hash those lines from mysql_install_db:
That "quick and dirty fix" works, for now :-)
Thank you for your attention.
 
  


Reply



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: KDE Participating in Google Summer of Code 2019, MariaDB Releasing New Open-Source MariaDB Enterprise Server, CentOS Celebrates 15th B LXer Syndicated Linux News 0 02-28-2019 06:50 AM
Mariadb/MySQL - extremely slow performance in Slackware64-current dunrix Slackware 2 02-09-2019 04:36 AM
Brightness function keys not working on Slackware64 & Slackware64 current Andersen Slackware 7 01-15-2018 04:27 AM
mysql mysql_install_db problems xrado Slackware 3 05-09-2006 01:10 AM
mysql_install_db hus Linux - Newbie 1 05-11-2005 12:33 AM

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

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