更改資料庫連接,testdb->care(HistoricalPage)

This commit is contained in:
kuei
2024-09-04 09:42:26 +08:00
parent 968ef745a2
commit 7fb6d59c1c
2 changed files with 21 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ class _PersonalInfoState extends State<PersonalInfo> {
}
void _saveChanges() async {
/*final conn = await MySQLConnection.createConnection(
final conn = await MySQLConnection.createConnection(
host: '203.64.84.154',
port: 33061,
userName: 'root',
@@ -88,7 +88,7 @@ class _PersonalInfoState extends State<PersonalInfo> {
databaseName: 'care',
);
await conn.connect();*/
await conn.connect();
try {
await conn.execute(