MySQL version / 5.7.31-0ubuntu0.16.04.1
リモート先のMySQL接続は問題なく出来ていますが、
app_root@ip-17x-xx-xx-xxx:~$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 214 Server version: 5.7.31-0ubuntu0.16.04.1 (Ubuntu) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> quit
MySQLを再起動しようとしたら「mysql.server: command not found」が表示されました。
MySQLがインストールされていない場合のメッセージと認識しています。
※検索してもインストールしてないのが原因という情報しか見つけられませんでした。
なぜ再起動出来ないのでしょうか?
考えれる事や、調べたが良い所など教えていただけると幸いです。
宜しくお願い致します。
app_root@ip-17x-xx-xx-xxx:~$ mysql.server restart mysql.server: command not found app_root@ip-17x-xx-xx-xxx:~$ service mysqld restart Failed to restart mysqld.service: Unit mysqld.service not found. app_root@ip-17x-xx-xx-xxx:~$ systemctl status mysqld ● mysqld.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) app_root@ip-1xx-xx-xx-xxx:~$
###ステータス確認追記
app_root@ip-17x-xx-xx-xxx:~$ service mysql status ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-12-19 05:00:05 JST; 11h ago Process: 10440 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 10430 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS) Main PID: 10439 (mysqld) Tasks: 35 Memory: 999.0M CPU: 5min 39.413s CGroup: /system.slice/mysql.service └─10439 /usr/sbin/mysqld app_root@ip-17x-xx-xx-xxx:~$
MySQL が動いてるマシンの OS は?
というか、service コマンドがあるなら service mysql restart とか?

回答1件
あなたの回答
tips
プレビュー