MySQLデータベースへの接続方法(Linux)
作成日:2014年10月1日 | 更新日:2020年5月21日
データベースに直接接続してのUpdate文、Insert文、Delete文などのクエリ実行は、お客様責任での実施とさせていただいております(保守サポートにおいて当社がご案内したクエリ文の実行は除きます)。
対応バージョン: 6.0 / 7.0 / 7.5 / 7.6 / 8.0 / 8.1 8121 ビルドまで
【ご質問】
ServiceDesk Plus をLinuxにインストールしています。
MySQL 接続方法を教えてください。
【回答】
以下の手順をご確認ください。
1.以下のディレクトリに移動します。
# cd [ServiceDesk-Home]/mysql/bin
2. 以下を実行します。
# mysql -u root -S ../tmp/mysql.sock servicedesk
3. 以下が表示され、接続完了です。
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -AWelcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.18-proType 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>