Why can't I start my mysql with service mysqld start

I use
/ usr/local/mysql/bin/mysqld-- defaults-file=/etc/my.cnf-- basedir=/usr/local/mysql-- datadir=/mysql/data-- pid-file=/mysql/data/mysql.pid-- socket=/mysql/data/mysql.sock

can be started. Why?

Mar.23,2021

you should take a look at / etc/init.d/ below what is the name of the mysql-related script

ls -al /etc/init.d/mysql*

in many systems, the name of the service script is mysql , rather than mysqld
, so you need to use

to start the service.
service mysql start

it seems that your mysql is not included in the system. If it is compiled and installed, you must first install the service script.

in addition, systemctl is recommended to start the service under the new centos and ubuntu:

systemctl start mysql
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaeb9b-2200.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaeb9b-2200.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?