Linux command
mysqld 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start MySQL server
mysqld
Start with specific config
mysqld --defaults-file=[/etc/mysql/my.cnf]
Start with data directory
mysqld --datadir=[/var/lib/mysql]
Run in safe mode
mysqld_safe
Initialize data directory
mysqld --initialize
Run with specific user
mysqld --user=[mysql]
Verbose logging
mysqld --verbose
说明
mysqld is the MySQL server daemon. It handles database storage and query processing. The tool is the core database engine. Manages connections, queries, and data.
参数
- --defaults-file _FILE_
- Configuration file.
- --datadir _DIR_
- Data directory path.
- --user _USER_
- Run as user.
- --initialize
- Initialize data directory.
- --port _PORT_
- Listen port.
- --verbose
- Verbose mode.
- --help
- Display help information.
FAQ
What is the mysqld command used for?
mysqld is the MySQL server daemon. It handles database storage and query processing. The tool is the core database engine. Manages connections, queries, and data.
How do I run a basic mysqld example?
Run `mysqld` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --defaults-file _FILE_ do in mysqld?
Configuration file.