我需要运行我在VPS上创建的运行Linux (CentOS7)的c#程序。该程序使用Youtube C# Api (更具体地说,使用上传视频)。
当我第一次在我的PC上运行代码时,浏览器打开了,我必须允许访问我的帐户。问题是:在centos上没有浏览器,只有终端。如何在没有浏览器的情况下将程序登录到我的帐户?
Error: Failed to launch browser with
"https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&response_type=code&client_id
在卸载mysql之前..。
让我们删除用户的“根”。
mysql -u root -e "delete from mysql.user where user not in (x);"
mysql -u root -e "flush privileges;"
上述声明说,除用户"x“外,请将所有用户从mysql中删除。
让我们从centos中完全删除mysql。
service mysqld stop
yum remove mysql -y
yum remove mysql-server -y
然后我们重新安装它。
yum install mysql -y