1. private static string connectionString = "Server=localhost;User ID=root;Password=123456;DataBase=WorkersM;";//连接字符串

    ●Server,host, data source,datasource,address,addr, network address:数据库位置(以上任何关键字均可)
    ●Database,initial catalog:数据库名
    ●Port: socket 端口,默认 3306
    ●UserID, uid, username,,user name,user:数据库登录帐号
    ●Password,pwd: 登录密码
    更多数据库连接字符串关键字