sudo su mysql select user,plugin from mysql.user; update mysql.user set authentication_string=PASSWORD('password'), plugin='mysql_native_password' where user='root'; flush privileges; exit
sudo /etc/init.d/mysql restart mysql -uroot -p
配置mysql远程登录 修改配置文件,bind-address = 0.0.0.0
1
sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
保存退出,然后进入mysql服务,执行授权命令
1 2 3 4 5
mysql -u root -p grant all on *.* to root@'%' identified by 'guqiao*2011_' with grant option; flush privileges; exit sudo /etc/init.d/mysql restart
Scale the image uniformly (maintain the image’s aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
Scale the image uniformly (maintain the image’s aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
Scale the image using CENTER. CENTER: Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. The result is centered inside dst.
Scale the image using END END: Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. END aligns the result to the right and bottom edges of dst.
Scale the image using START START: Compute a scale that will maintain the original src aspect ratio, but will also ensure that src fits entirely inside dst. At least one axis (X or Y) will fit exactly. START aligns the result to the left and top edges of dst.