[vl4do@archlinux ~]$ mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")
Enter current password for root (enter for none):
što god da upišem ili ne upišem, isti error. Možda zato što sam ranije instalirao mariadb, mysql... i štošta. Moram to sve prvo očistiti.
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2017-01-29 12:41:41 CET; 8s ago
Process: 1760 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited,
Process: 1669 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/gal
Process: 1667 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited,
Main PID: 1731 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 27 (limit: 4915)
CGroup: /system.slice/mariadb.service
└─1731 /usr/sbin/mysqld
Jeaah, pokrenuo se.
Morao sam, čini mi se i dati ovlasti svim fileovima u mapi msql. Nšao u terminalu još brdo manuala.
Idem na sljedeći korak "phpmyadmin".
[vl4do@archlinux ~]$ mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 10.1.21-MariaDB MariaDB Server
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
Za sada bez passworda, a mislim da nema ni potrebe.
@gagiD, phpmyadmin instaliran i dostupan na localhost/phpmyadmin
WP instaliran i dostupan na localhost/wordpress. Nisam ga raspakirao u /srv/httpd (ne postoji taj folder), nego u /srv/http.
Sada još ostaje login u jedno i drugo (poslije ručka uz )
@ /etc/webapps/phpmyadmin/config.inc.php promijenio "false" u "TRUE" u liniji $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
...i opet se ne mogu logirati u phpmyadmin.
U /etc/webapps/phpmyadmin/config.inc.php ?
Kad to dodam na kraj filea, ne mogu ni login ekran otvoriti. Po ovim uputama sam resetirao pass i sada se uredno prijavim sa svojim passom u mariaDB