mkdir -p /var/www/setup/talib
cd /var/www/setup/talib
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xvf ta-lib-0.4.0-src.tar.gz
cd /ta-lib
./configure --prefix=/usr/local/ta-lib
make
sudo make install
1.修改配置文件:进入/etc/mysql/mysql.conf.d/ , 在配置文件mysqld.cnf下添加 skip-grant-tables 2.在终端输入命令:sudo service mysql restart来重新启动mysql服务 3.输入:mysql -u root -p,回车进入mysql(此时不需要密码即可直接进入)
use mysql;
update user set authentication_string='' where user='root';,
alter user 'root'@'localhost' identified by '123456';
FLUSH PRIVILEGES;
alter user 'root'@'localhost' identified by '123456';
select user,plugin from mysql.user;
update user set plugin='mysql_native_password' where user='root';
FLUSH PRIVILEGES;
alter user 'root'@'localhost' identified by '123456';
FLUSH PRIVILEGES;
5.将第一步的skip-grant-tables注释掉; 6.输入service mysql restart重启mysql
vector<string> list;
int strSize = str.size();
int i = 0;
while (i < strSize) {
int len = 1;
for (int j = 0; j < 6 && (str[i] & (0x80 >> j)); j++) {
len = j+1;
}
list.push_back(str.substr(i, len));
i += len;
}