一劲够、MySQL的配置
1.安裝MariaDb和其客戶端工具
sudo pacman -S mariadb mariadb-clients
2.安裝完成之后飞主,會出現(xiàn)如何開啟MariaDb的提示:
:: You need to initialize the MariaDB data directory prior to starting
the service. This can be done with mysql_install_db command, e.g.:
mysql_install_db –user=mysql –basedir=/usr –datadir=/var/lib/mysql
根據(jù)提示,初始化數(shù)據(jù)庫目錄
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
3.接下來會出現(xiàn)MariaDb的幫助信息
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:
'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h mypc password 'new-password'
Alternatively you can run:
'/usr/bin/mysql_secure_installation'
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl
Please report any problems at http://mariadb.org/jira
The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from MariaDB
Corporation Ab. You can contact us about this at sales@mariadb.com.
Alternatively consider joining our community based development effort:
http://mariadb.com/kb/en/contributing-to-the-mariadb-project/
4.啟動MariaDb,
sudo systemctl start mysqld
5.為root用戶設置一個密碼,
mysqladmin -u root password 'root'
6.登錄MariaDb,如果登錄成功鞠绰,說明配置完成了,
mysql -uroot -p
7.MariaDb開機自動啟動
sudo systemctl enable mysqld
8.圖形化MySQL工具navicat
i.官方試用版安裝
中文版:http://www.navicat.com.cn/download/navicat-for-mysql
或英文版:https://www.navicat.com/en/download/navicat-for-mysql
免費試用14天飒焦。
ii.解壓
tar -zxvf /usr/local/navicat120_mysql_cs_x64.tar.gz
iii.運行
./start_navicat
之后會提示安裝wine(wine是Windows應用在Linux下運行的必須的環(huán)境)
官方下載的navicat已經(jīng)繼承好了wine在壓縮包里蜈膨,所以使用官方下載的更為省心
iv.啟動
安裝好wine后屿笼,運行navicat,會彈出對話框翁巍,可選擇使用或輸入注冊碼注冊驴一。不要去找注冊碼,選“試用”灶壶,除非你有可用的注冊碼肝断。
v.解決navicat的中文亂碼問題
vim start_navicat
export LANG="zh_CN.UTF-8" //第八行中export LANG="en_US.UTF-8
vi.破解
其實沒有什么好的破解方法,有的是把Linux下的exe應用拷貝到Windows中再從Windows中進行破解驰凛。
還有一個辦法就是刪除/opt/目錄下的/.navicat目錄胸懈,或者system.reg這個文件(因為這個文件是記錄navaicat運行的時間的)
二、maven
1.安裝maven
http://maven.apache.org/download.cgi
2.解壓文件
tar -zxvf apache-maven-3.6.1-bin.tar.gz
sudo mv -f apache-maven-3.6.1 /usr/local/
3.添加環(huán)境變量
vim /etc/profile
在文末添加以下代碼
export MAVEN_HOME=/usr/local/apache-maven-3.6.1
export PATH=${PATH}:${MAVEN_HOME}/bin
使更改生效
source /etc/profile
檢查是否安裝成功
mvn -v
若有輸出信息則安裝成功