The default port of MySql is 6379, and the default port of MySql is 6379. The default port of MySql is 6379, and the default port is 6379. Cannot connect to MySql. Port=6379 (Port=6379) MySql default port number is 3306.

1, Dapper mode: Sql encapsulation to obtain the physical database table information

The previous scheme is to use Dapper to directly access THE SQL string and directly obtain the structured information of the table. Here is the statement:

        private static readonly string _sqlGetTables = "SELECT `TABLE_NAME` FROM information_schema.`TABLES` WHERE `TABLE_SCHEMA`=@dbName AND `TABLE_TYPE`='BASE TABLE'";
        private static<
Copy the code