我在Ubuntu20.04上,安装了mysql的默认版本。但如果不使用sudo,我似乎无法以root身份登录。这是对新版本的限制吗?我相信以前的Ubuntu14.04,12.04等版本都不是这样的。mysql --user=root -p。sudo mysql --user=root -pWelcome to the MySQL</em
我有一个连接到mysql数据库的ASP.NET应用程序。如果在服务器上,我在visual studio (使用开发服务器)中运行网站,它可以正确地连接到mysql数据库。但是,如果我在同一台服务器上使用IIS,则会抛出异常'Unable to connect to any of the specified MySQL hosts'。它被配置为使用标识为'ApplicationPoolIdentity'的应用程序池。MYSQLConnectionString"