# npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ npm i node-sass --sass_binary_site=https://npmmirror.com/mirrors/node-sass/
sequenceDiagram
participant Alice
participant Bob
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts prevail...
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
gantt
dateFormat YYYY-MM-DD
title Adding GANTT diagram to mermaid
section A section
Completed task :done, des1, 2014-01-06,2014-01-08
Active task :active, des2, 2014-01-09, 3d
Future task : des3, after des2, 5d
Future task2 : des4, after des3, 5d
# Instead of skip-networking the default is now to listen only on # localhost which is more compatible and is not less secure. bind-address = 127.0.0.1
$ mysql -h 192.168.0.101 -u root -p Enter password: ERROR 1130 (00000): Host 'Ubuntu-Fvlo.Server' is not allowed to connect to this MySQL server
解决办法:给 root 用户分配远程访问的权限,密码设置为 123456。
1 2 3 4 5 6 7 8
$ mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 28 Server version: 5.5.51-MariaDB-1~trusty mariadb.org binary distribution ...... MariaDB [(none)]> grant all on *.* to root@'%' identified by '123456'; Query OK, 0 rows affected (0.00 sec)
再次测试,成功。
1 2 3 4 5 6 7
$ mysql -h 192.168.0.101 -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 28 Server version: 5.5.51-MariaDB-1~trusty mariadb.org binary distribution ...... MariaDB [(none)]>
CentOS6.6 要关闭防火强 service iptables stop # 停止 chkconfig iptables off # 禁用
New password: (输入密码) Re-enter new password: (重复输入) Remove anonymous users? [Y/n]: Y Disallow root login remotely? [Y/n]: Y Remove test database and access to it? [Y/n]: Y Reload privilege tables now? [Y/n]: Y
创建 REDMINE 数据库
1 2 3 4 5 6 7
sudo mysql -u root -p
mysql> create database redmine; mysql> create user 'redmine'@'localhost' identified by '123456'; mysql> grant all on redmine.* to 'redmine'@'localhost' identified by '123456' with grant option; mysql> flush privileges; mysql> exit;
创建用户或授权时有可能报如下错误:
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements 这是由于密码太简单,不满足安全策略造成的。查看MYSQL初始的密码策略:
Fetching: mysql2-0.5.3.gem (100%) Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.5.0/gems/mysql2-0.5.3/ext/mysql2 /usr/bin/ruby2.5 -r ./siteconf20200414-8181-7u476x.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.5.0/gems/mysql2-0.5.3 for inspection. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/mysql2-0.5.3/gem_make.out