なんだかMySQLが色々と使いにくく進歩しているようです。特にubuntu用がひどく感じます。
時代なのでしょうかCentOS7上では、こんな罠は目立たなかったのですがね。
ようやくWorkbenchで接続できるようになりましたので防備録として
##############MySQL5.7のインストール#########################
sudo apt install mysql-server mysql-client
sudo mysql_secure_installation
初期のランダムパスワードが/var/log/mysqld.logにある
最初の質問で「validate_password」というプラグインを使うかどうか聞かれるので必ず「n」にする。
そうしないとパスワードの制限が厳しくなる。
MySQL5.7から緩いパスワードを受け付けない、「validate_password」とかいう機能が追加された
削除も可能な様子
mysql> SHOW VARIABLES LIKE 'validate_password%';
+-----------------------------------------------------+--------------+
| Variable_name | Value |
+-----------------------------------------------------+--------------+
| validate_password_dictionary_file | |
| validate_password_length | 8 |
| validate_password_mixed_case_count | 1 |
| validate_password_number_count | 1 |
| validate_password_policy | MEDIUM |
| validate_password_special_char_count | 1 |
+-----------------------------------------------------+--------------+
MEDIUM ポリシーは、パスワードが最低 1 つの数値文字を含み、1 つの小文字および大文字を含み、1 つの特殊文字 (英数字以外) を含む必要があるという条件を追加します。
sudo mysql -u root -p
mysql> uninstall plugin validate_password;
mysql> SHOW VARIABLES LIKE 'validate_password%';
Empty set (0.00 sec)
MySQLの設定の参考に
https://weblabo.oscasierra.net/mysql-57-init-setup/
ついでにWorkBenchも入れておく
sudo apt install mysql-workbench
ただし、"root"では接続できない(セキュリティー面とためなようだ)
なので、接続用のユーザーを作成する。
sudo mysql -u root -p
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin-password';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
時代なのでしょうかCentOS7上では、こんな罠は目立たなかったのですがね。
ようやくWorkbenchで接続できるようになりましたので防備録として
##############MySQL5.7のインストール#########################
sudo apt install mysql-server mysql-client
sudo mysql_secure_installation
初期のランダムパスワードが/var/log/mysqld.logにある
最初の質問で「validate_password」というプラグインを使うかどうか聞かれるので必ず「n」にする。
そうしないとパスワードの制限が厳しくなる。
MySQL5.7から緩いパスワードを受け付けない、「validate_password」とかいう機能が追加された
削除も可能な様子
mysql> SHOW VARIABLES LIKE 'validate_password%';
+-----------------------------------------------------+--------------+
| Variable_name | Value |
+-----------------------------------------------------+--------------+
| validate_password_dictionary_file | |
| validate_password_length | 8 |
| validate_password_mixed_case_count | 1 |
| validate_password_number_count | 1 |
| validate_password_policy | MEDIUM |
| validate_password_special_char_count | 1 |
+-----------------------------------------------------+--------------+
MEDIUM ポリシーは、パスワードが最低 1 つの数値文字を含み、1 つの小文字および大文字を含み、1 つの特殊文字 (英数字以外) を含む必要があるという条件を追加します。
sudo mysql -u root -p
mysql> uninstall plugin validate_password;
mysql> SHOW VARIABLES LIKE 'validate_password%';
Empty set (0.00 sec)
MySQLの設定の参考に
https://weblabo.oscasierra.net/mysql-57-init-setup/
ついでにWorkBenchも入れておく
sudo apt install mysql-workbench
ただし、"root"では接続できない(セキュリティー面とためなようだ)
なので、接続用のユーザーを作成する。
sudo mysql -u root -p
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin-password';
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;
o activate Weasis, go to the JMX console (at http://:8080/jmx-console)
In dcm4chee.web select service=WebConfig and set these two values:
WebviewerNames = weasis
WebviewerBaseUrl = weasis:/weasis-pacs-connector/weasis
This configuration allows launching Weasis with the weasis protocol that requires the installation of the native client..
Click the Apply Changes button
Configure Weasis (This step is optional if you just want to keep the default configuration. It is required when the AETitle DCM4CHEE has been changed) The default configuration is stored in two files inside weasis-pacs-connector.war. To override the default configuration:
Download the current weasis-connector-default.properties and rename it weasis-pacs-connector.properties, and download dicom-dcm4chee.properties (configuration of the dcm4chee archive)
Copy the files into a folder in the classpath of the servlet container. In JBoss (inferior to version 7), the best location would typically be server/default/conf.
Edit the configuration as needed. For example, dcm4chee may be running on a different computer than Weasis, or the AE Title of dcm4chee may have been changed.
If so, edit weasis-pacs-connector.properties or dicom-dcm4chee.properties (e.g. pacs.host, pacs.port, pacs.aet…)
That’s all, now restart dcm4chee. To launch the viewer from the dcm4chee-web3 portal, the client computer must have installed the Weasis package on the operating system.
In dcm4chee.web select service=WebConfig and set these two values:
WebviewerNames = weasis
WebviewerBaseUrl = weasis:/weasis-pacs-connector/weasis
This configuration allows launching Weasis with the weasis protocol that requires the installation of the native client..
Click the Apply Changes button
Configure Weasis (This step is optional if you just want to keep the default configuration. It is required when the AETitle DCM4CHEE has been changed) The default configuration is stored in two files inside weasis-pacs-connector.war. To override the default configuration:
Download the current weasis-connector-default.properties and rename it weasis-pacs-connector.properties, and download dicom-dcm4chee.properties (configuration of the dcm4chee archive)
Copy the files into a folder in the classpath of the servlet container. In JBoss (inferior to version 7), the best location would typically be server/default/conf.
Edit the configuration as needed. For example, dcm4chee may be running on a different computer than Weasis, or the AE Title of dcm4chee may have been changed.
If so, edit weasis-pacs-connector.properties or dicom-dcm4chee.properties (e.g. pacs.host, pacs.port, pacs.aet…)
That’s all, now restart dcm4chee. To launch the viewer from the dcm4chee-web3 portal, the client computer must have installed the Weasis package on the operating system.