Failed to start mysql.service: Unit mysql.service not found.
systemctl list-unit-files '*mariadb*' '*mysql*'
UNIT FILE STATE VENDOR PRESET
0 unit files listed.
UNIT FILE STATE VENDOR PRESET
mariadb.service enabled enabled
mariadb@.service disabled enabled
mysql.service alias -
mysqld.service alias -
4 unit files listed.
سلاممطمئنید که mysql رو درست نصب کردید؟
خروجی دستور
sudo systemctl start mysqlکد: [انتخاب]Failed to start mysql.service: Unit mysql.service not found.
با تغییر پورت هم کاری از پیش نرفت :'(
نصب شد دوباره خروجی گرفتم و بسته های زیر نصب بودکد: [انتخاب]UNIT FILE STATE VENDOR PRESET
mariadb.service enabled enabled
mariadb@.service disabled enabled
mysql.service alias -
mysqld.service alias -
4 unit files listed.
هم مای اس کیو ال و هم mariadb رو استارت می کنم خروجی نداره و توی زمپ هم فعال نشده و ورد پرس هم ارور دسترسی به پایگاه داده رو میده
/var/www/html/
بلهسلاممطمئنید که mysql رو درست نصب کردید؟
خروجی دستور
sudo systemctl start mysqlکد: [انتخاب]Failed to start mysql.service: Unit mysql.service not found.
با تغییر پورت هم کاری از پیش نرفت :'(
sudo /opt/lampp/lampp start
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
Ready. Apache and MySQL are running.
tarting all servers...
Starting MySQL Database...
Starting Apache Web Server...
/opt/lampp/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/opt/lampp/proftpd/scripts/ctl.sh : proftpd started
Starting MySQL Database...
Starting MySQL Database...
و خروجی لمپ ترمینال Starting XAMPP for Linux 8.0.10-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found
ok.
XAMPP: Starting ProFTPD...already running.
/opt/lampp/bin/mysql.server: 264: kill: No such process
ارور های پی اچ پی مای ادمین روی مرورگر
Welcome to phpMyAdmin
Error
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): Connection refused
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): Connection refused
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
● mariadb.service - MariaDB 10.5.12 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor prese>
Active: active (running) since Sun 2021-10-17 11:05:24 +0330; 2min 27s ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 8801 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 9 (limit: 6997)
Memory: 64.0M
CPU: 492ms
CGroup: /system.slice/mariadb.service
└─8801 /usr/sbin/mariadbd
/opt/lampp/bin/
مای اس کیو ال نوی مخازن نیست مگه ؟ پس چرا میگه نیست ؟چی میزنی؟
sudo systemctl start mysql.service
امتحان کردم خروجی نداره ولی فعال هم نمیشهکد: [انتخاب]sudo systemctl start mysql.service
systemctl status mariadb
mysql -u root -p
show databases;
CREATE DATABASE your_database_name;