project bitnami redmine project manager 4.0.4-1


s

MySQL_5.5中文參考手冊.pdf
http://wiki.cns*****.com/download/attachments/17406236/MySQL_5.5%E4%B8%AD%E6%96%87%E5%8F%82%E8%80%83%E6%89%8B%E5%86%8C.pdf?version=1&modificationDate=1404876156000&api=v2

redmine軟件下載
https://downloads.bitnami.com/files/stacks/redmine/4.0.4-1/bitnami-redmine-4.0.4-1-linux-x64-installer.run

http://www.redmine.org/releases/redmine-4.0.4.zip

數據庫服務器
服務器: Localhost via UNIX socket
服務器類型: MySQL
服務器連接: SSL未被使用 文檔
服務器版本: 5.7.26 - MySQL Community Server (GPL)
協議版本: 10
用戶: root@localhost
服務器字符集: UTF-8 Unicode (utf8)
網站服務器
Apache
數據庫客戶端版本: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
PHP 擴展: mysqli文檔 curl文檔 mbstring文檔
PHP 版本: 7.3.6
phpMyAdmin 版本信息: 4.9.0.1

問題1:For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.

http://10.49.2.57/phpmyadmin

For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname.

解決1:

1、修改文件

[root@sctssitapp77 ~]# vim /opt/redmine-4.0.4-1/apps/phpmyadmin/conf/httpd-app.conf

修改內容:

原 Require local

新 Require all granted 。

2、重啟apache和mysql服務,OK

Bitnami-Redmine外網訪問phpmyadmin設置

https://blog.51cto.com/zdytesting/1884969

 

問題2:MySql 只能訪問localhost 和 127.0.0.1訪問 不能通過其他IP訪問

https://www.cnblogs.com/dwj0931-node/p/5800255.html

redmine 放開外部IP能訪問數據庫3306端口

解決2:

1、mysql 修改文件

[root@centos7 mysql]# vim /opt/redmine-4.0.4-1/mysql/my.cnf

修改內容

原 bind-address=127.0.0.1

新 bind-address=0.0.0.0

2、進入界面進行執行SQL命令並重啟mysql

[root@centos7 ~]# /opt/redmine-4.0.4-1/manager-linux-x64.run 
執行命令:grant all privileges on *.* to root@'%' identified by '你的密碼';

執行命令:flush privileges;

 

參考:

問題描述:

項目中跨域請求數據,在遠程主機訪問本機的MySql時,總是無法連接。本機也只能用localhost和127.0.0.1訪問,不可以用192.168.*.*等IP訪問。

解決方案:

1.以root用戶登陸mysql數據庫

mysql -u root -p

2.執行一下命令分配新用戶

grant all privileges on *.* to root@'%' identified by 'your root password'; 添加成功之后返回信息:Query OK, 0 rows affected (0.03 sec) 'all privileges ':所有權限 也可以寫成 select ,update等。 *.* 所有庫的所有表 如 databasename.*。 IP 數據庫所在的IP。 identified by ‘密碼’ 表示通過密碼連接

3.執行完上述命令后用下面的命令刷新一下權限

flush privileges;

4.修改my.conf配置

[mysqld] ... bind_address=127.0.0.1 # 屏蔽掉該處 ... 或者無需屏蔽,修改為bind_address=0.0.0.0

5.重新啟動mysql

啟動:輸入 net stop mysql 停止:輸入 net start mysql

 

 

Starting all servers...
Starting MySQL Database...
/opt/redmine-4.0.4-1/mysql/scripts/ctl.sh : mysql started at port 3306
Starting Apache Web Server...
/opt/redmine-4.0.4-1/apache2/scripts/ctl.sh : httpd started at port 80
Starting Subversion Server...
/opt/redmine-4.0.4-1/subversion/scripts/ctl.sh : subversion started at port 3690

 

navicat mysql 

1130 - Host ‘10.49.2.162’  is not allowed connect to this MySQL server

問題3:mysqldump: [Warning] Using a password on the command line interface can be insecure.

未解決3:

https://www.cnblogs.com/wt645631686/p/7832993.html

在阿里雲服務器增加一個shell腳本定時備份數據庫腳本執行任務時,測試性的執行了備份命令,如下

[root@iZ2ze503xw2q1fftv5rhboZ mysql_bak]# /usr/local/mysql/bin/mysqldump -uroot -pmyServerPwd# dateabase > /data/mysql_bak/bak_test.sql

在執行完了命令本該在指定的目錄下出現bak_test.sql文件,然而並沒有生成,報了一行錯誤。這個問題應該是在MySQL5.6+版本的時候就有出現,可能是為了確保數據庫的安全性采用的保護機制。

mysqldump: [Warning] Using a password on the command line interface can be insecure.

網上大部分給出的解決方案都是修改mysql的配置文件,給[client]選項增加三行命令

vim /etc/my.cnf
復制代碼
[client]
port = 3306
socket = /tmp/mysql.sock
default-character-set = utf8mb4
host = localhost        //地址
user = root            //用戶
password = 'myServerPwd'    //密碼
復制代碼

在增加了三行代碼,我習慣性的重啟了mysql服務,再同樣執行備份命令,發現還是出現錯誤。

在搜索各種方案的過程中也無意中發現關於此方法在安全性上的一些官方性不足,mysql的官方給出的說明。

https://dev.mysql.com/doc/refman/5.6/en/password-security-user.html?spm=5176.7737807.2.3.D6p7hh

然后針對高版本Mysql備份數據庫的解決方案來了,前方高能~~~

命令和以前常用的快速導入和導入命令有所不同了,需要加載我們配置的MYSQL配置文件!

/usr/local/mysql/bin/mysqldump --defaults-extra-file=/etc/my.cnf database > /data/mysql_bak/bak_test.sql    //備份導出數據庫
/usr/local/mysql/bin/mysql --defaults-extra-file=/etc/my.cnf database < test_db.sql          //導入數據庫

 查看/data/mysql_bak下,發現想要的數據庫備份文件出現了~

end


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM