我在C#中有一个可执行文件,需要远程连接到Linux服务器,以便连接到Amazon数据库。
可执行文件驻留在Windows服务器上。由于权限的关系,只有Linux服务器能够连接到RDS数据库。由于C#可执行文件需要数据库中的信息,所以我发现自己需要先连接到Linux服务器,然后再从那里连接到数据库。
// include files
using MySql.Data;
using MySql.Data.MySqlClient;
using Renci.SshNet;
//...
using (var client = new SshClient("server.ama
我用ubuntu11.04服务器安装apache2。连接到数据库时出现问题。这是我的错误:
CDbConnection failed to open the DB connection: could not find driver
这是mycode连接到数据库:
'db'=>array(
'connectionString' => 'mysql:host=localhost;port=3306;dbname=server$
'emulatePrepare' => true
我正试图从DO中的一个小滴连接到一个托管的MySQL 8数据库。
在液滴中,这是MySQL版本
mysql Ver 14.14 Distrib 5.7.27, for Linux (x86_64) using EditLine wrapper
我想,这就是我使用的“mysql客户端”。
我创建了一个托管数据库,并且能够从本地连接。我把我的ip和水滴白化了。
但是,当我通过ssh连接到液滴,然后尝试连接到MySQL时,用我从计算机上使用的相同的命令,我得到
错误2026 (HY000):SSL连接错误:未知错误号
我想用shell命令连接到外部服务器上的mysql数据库。Ubuntu版本16.04。
mysql -uXXXXXX -pYYYYYY -h domain.com
我得到了错误:
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2059 (HY000): Authentication plugin 'mysql_old_password' cannot be loaded: /usr/lib/mysql/plugin/mysql_old_passwor