adamlofts / mysql1_dart Goto Github PK
View Code? Open in Web Editor NEWMySQL driver for Dart
License: Other
MySQL driver for Dart
License: Other
I am converting some code from java to dart. I have found a variation in the way query works in comparison to jdbc.
In Java, I do :
UPDATE water_line_field SET user_id = 0 , local_ts = 242846754 WHERE change_type = 1 AND id = 16777215 AND table_type = 65535
int rowCount=PreparedStatement.executeUpdate();
In this specfic case, I send an update, but it so happens that the set values mean that one row will match, but the values will be unchanged.
In other words, I am setting the row to the values it already contains.
Under jdbc this query will return a rowCount of 1.
The driver I am using is : mariadb-java-client-1.5.6.jar
(although the code ran the same previously under a mysql driver).
If I perform the same query in dart mysql1: ^0.17.1
Results results = MySqlConnection.query(sqlString);
results.length returns 0
results.affectedRows returns 0
I realize that this matches what is returned when using the command line sql commands :
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
I just thought I would point out this variation incase you intended to match jdbc behaviour.
It might be nice to have an additonal :
results.matchedRows
if people require this level of detail.
I am using MySQL 8.0.16!
Unhandled exception:
MySQL Client Error: Authentication plugin not supported: caching_sha2_password
#0 HandshakeHandler.processResponse (package:mysql1/src/auth/handshake_handler.dart:118:7)
#1 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
<asynchronous suspension>
#2 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
<asynchronous suspension>
#3 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
<asynchronous suspension>
#4 MySqlConnection.connect.<anonymous closure> (package:mysql1/src/single_connection.dart:120:13)
#5 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:11)
#6 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#9 _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#10 _StreamController._add (dart:async/stream_controller.dart:640:7)
#11 _StreamController.add (dart:async/stream_controller.dart:586:5)
#12 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1323:33)
#13 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:844:14)
#14 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#15 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#16 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#17 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)
The name 'Row' is defined in the libraries 'package:flutter/src/widgets/basic.dart' and 'package:mysql1/src/results/row.dart'.dart(ambiguous_import)
is there any solution for this ambiguity error.
my imports are as follow:-
import 'package:flutter/material.dart';
import 'package:mysql1/mysql1.dart' ;
update user set email =?,name=?,nickname=?,avatarUrl=?,age=?,bio=? where uid =?
1 20
#0 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:85:7)
#1 ExecuteQueryHandler.processResponse (package:mysql1/src/prepared_statements/execute_query_handler.dart:339:16)
#2 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
#3 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
#4 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
#5 MySqlConnection.connect. (package:mysql1/src/single_connection.dart:120:13)
#6 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:11)
#7 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#10 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#11 _StreamController._add (dart:async/stream_controller.dart:640:7)
#12 _StreamController.add (dart:async/stream_controller.dart:586:5)
#13 new _RawSocket. (dart:io-patch/socket_patch.dart:1339:33)
#14 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:860:14)
#15 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#17 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#18 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
#0 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:85:7)
#1 ExecuteQueryHandler.processResponse (package:mysql1/src/prepared_statements/execute_query_handler.dart:339:16)
#2 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
#3 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
#4 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
In my own opinion(and most who have used REST API) prefer to use Map<String,dynamic>
over List<Field>
and List<Row>
.
example output:
final result = await connect.query('SELECT * FROM menus');
Result:
{
"greeting": "Welcome to quicktype!",
"instructions": [
"Type or paste JSON here",
"Or choose a sample above",
"quicktype will generate code in your",
"chosen language to parse the sample data"
]
}
Hi,
Thank-you for your work on this library.
I am trying to retrieve the field name returned from the query method, but having no luck.
e.g.
_conn.query(sql).then((Results results) {
for(Row row in results) {
int i=0;
print("Row="+row.toString());
row.forEach((v) {
print("value="+v.toString());
});
}
});
I would like to retrieve item_description & item_complete from here :
SELECT item_description, item_complete FROM task_item WHERE task_id = 1
Row=Fields: {item_description: Walk to shops, item_complete: 1}
value=Walk to shops
value=1
And Tables_in_sharecal (task_item) from here :
SHOW TABLES LIKE 'task_item'
Row=Fields: {Tables_in_sharecal (task_item): task_item}
value=task_item
I tried various methods (such as map / asMap) but they didnt return the keys / field names.
Hi,
Thanks for providing this useful package!
The connection works fine on a local MySQL db (with MAMP), but when trying to connect to an external MySQL database, the connection fails and I receive the error listed below.
Any idea what this error means?
` Future getData({String sql, List args}) async {
String sqlStatement = sql ?? 'select ID, name, email from mytable ';
List arguments = args ?? [];
MySqlConnection connection;
var settings = ConnectionSettings(
host: '000.00.000.000',
port: 0000,
user: 'myuser',
password: 'mypassword',
db: 'mydb');
try {
connection = await MySqlConnection.connect(settings);
} catch (e) {
if (e) {
print(e);
return;
}
}
var results = await connection.query(sqlStatement, arguments);
if (results.length > 0) {
for (var row in results) {
print('ID: ${row[0]}, name: ${row[1]}, email: ${row[2]}');
}
}
await connection.close();
}`
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: type 'SocketException' is not a subtype of type 'bool' #0 MySQLCon.getData (package:brov_research_app/components/database.dart:18:11) <asynchronous suspension> #1 _MyHomePageState.build.<anonymous closure> (package:brov_research_app/main.dart:56:22) #2 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14) #3 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:566:30) #4 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24) #5 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9) #6 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:211:7) #7 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) #8 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:225:20) #9 _WidgetsFlutterBinding&Bind<โฆ>
Error message:
MySQL Client Error: Authentication plugin not supported: caching_sha2_password
I have already modified the authentication method on the database side.
*************************** 1. row ***************************
user: root
host: %
plugin: mysql_native_password
authentication_string: *C1926D
I need to have the servers return data as JSON. I can only get it as SET or List. Can you plwase provide me some necessary resources
Hi. I'm trying to call a simple stored procedure:
Future<List<User>> getUsers() async {
final conn = await MySqlConnection.connect(Config.dbConnectionSettings);
const query = "CALL `getUsers`();";
final results = await conn.query(query);
final List<User> users = [];
for (var row in results) {
users.add(User.fromRow(row));
}
await conn.close();
return users;
}
It works but bring up a WARNING:
[WARNING] MySqlConnection: Error sending quit on connection Bad state: Cannot write to socket, it is closed #0 BufferedSocket.writeBufferPart (package:mysql1/src/buffered_socket.dart:119:7)
This warning only appears if stored procedure is used.
Any suggest to avoid it?
Thanks
I used your mysql1 to get a connection `
Future<Results> connectToDB() async {
try {
connection = (connection == null
? await MySqlConnection.connect(connection_settings)
: connection);
results = await connection.query(
'select company_logoDB from location where cityDB=? & category_id= order by id',
[name, category_id]);
results.forEach((element) { //element param is a database Row
city_row_column = element.toList();
company_logo = city_row_column[0];
});
print('connected');
} on HttpException catch (err) {
var message = err.message;
print(message);
} finally {
print('Do Something');
}
return results;
}`
Now on the application I have a Row widget:
`Container(
alignment: Alignment.center,
padding: EdgeInsets.all(2.0),
color: Colors.white,
height: 70.0,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Expanded(
flex: 1,
child: FittedBox(
....`
the Row widget is highlited with Red ..when I put cursor on it I get this :
'Row' isn't a function. Try correcting the name to match an existing function, or define a method or function named 'Row'. Open documentation
The name 'Row' is defined in the libraries 'package:flutter/src/widgets/basic.dart (via package:flutter/widgets.dart)' and 'package:mysql1/src/results/row.dart (via package:mysql1/mysql1.dart)'. Try using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.
Flutter platform and your API using same name Row though for different perspective ...
can use Stack but I prefer Row...I need a solution kindly ...I
Using the example code in "https://pub.dev/packages/mysql1#-example-tab-", it gives "socket has been closed" when trying to make the connection.
The code gives error in both VSCode and Android Studio.
Using MySQL Workbench with the same access data, the connection goes smoothly and access to the bank is complete.
Ubuntu 20.04 LTS 64 bits GNOME 3.36.2.
MySql1 ^0.17.1
VSCode 1.46.0
Android Studio 4.0
This code may not support deleting or updating dataโฆโฆ
My current project has a single time zone database. i.e. all dates are local.
However, binary_data_packet.dart (line 144) and standard_data_packet.dart (line 70) assume that database dates are held as UTC. This can cause dates to drift a few hours between write and read back. I have currently forked the repository to get around the issue however, I feel a better solution might be to make the conversion conditional on a database connection parameter.
If you agree, and you think it is possible for a packet to identify it's connection, then I am happy to do the changes.
when i open the app... 2 minutes all sql query's will work ofter that connection automatically terminates... if i relaunches the app, another 2 minutes works after then again disconnect to the server...i am using remotemysql.com to host mysql server ...
please help me..
Is this library can make transactions?
Is there an example?
Thanks a lot
when I use it on mac with the flutter.
var settings = new ConnectionSettings(
host: 'localhost',
port: 3306,
user: 'xxxx',
password: 'xxx',
db: 'xxxx');
var conn = await MySqlConnection.connect(settings);
it gets the error.
I am looking for an equivalent for real_escape_string in this package? is there any?
There is the possibility to implement like command or stored procedure
dev_param: null, is_control: 1814199226, pool_id: 1953066345, create_by: _up": "11", "limit1_up": "22", "limit2_up": "", , create_time: 26997-04-19 20:52:35.975Z, update_by: imit0_down": "1", "limit1_down": "2", "limit2_down": "", "limit3_down": "", "limit4_down": ""}๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ
The data is wrong
I need some initial help. I haven' tried this package before but I have some questions? Where I will host my server? How may I use localhost, MySQL server will be running on my PC but how may I use it in android device?
I'm connecting to a AWS Aurora DB. Simple queries work fine. I've not been able to get a stored procedure call to work.
I've created your test case procedure p ( select a * b) and i'm attempting to call it. I'm receiving the following:
[WARNING] MySqlConnection: Ignoring error because no response NoSuchMethodError: The method 'processResponse' was called on null.
Receiver: null
Tried calling: processResponse(Instance of 'Buffer') #0 Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
#2 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
#3 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
#4 MySqlConnection.connect. (package:mysql1/src/single_connection.dart:120:13)
#5 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:11)
#6 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#7 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#8 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#9 _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#10 _StreamController._add (dart:async/stream_controller.dart:640:7)
#11 _StreamController.add (dart:async/stream_controller.dart:586:5)
#12 new _RawSocket. (dart:io/runtime/binsocket_patch.dart:1323:33)
#13 _NativeSocket.issueReadEvent.issue (dart:io/runtime/binsocket_patch.dart:844:14)
#14 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#15 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#16 _runPendingImmediateCallback (dart:isolate/runtime/libisolate_patch.dart:115:13)
#17 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:172:5)
when i try to make a simple select, the app lauchs this exception:
E/flutter (11252): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: Invalid argument(s): Illegal length 0
E/flutter (11252): #0 _NativeSocket.read (dart:io-patch/socket_patch.dart:819:7)
E/flutter (11252): #1 _RawSocket.read (dart:io-patch/socket_patch.dart:1614:22)
E/flutter (11252): #2 Buffer.readFromSocket (package:mysql1/src/buffer.dart:48:30)
E/flutter (11252): #3 BufferedSocket._readBuffer (package:mysql1/src/buffered_socket.dart:178:36)
E/flutter (11252): #4 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:9)
E/flutter (11252): #5 _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter (11252): #6 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (11252): #7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter (11252): #8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
E/flutter (11252): #9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
E/flutter (11252): #10 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
E/flutter (11252): #11 _StreamController._add (dart:async/stream_controller.dart:682:7)
E/flutter (11252): #12 _StreamController.add (dart:async/stream_controller.dart:624:5)
E/flutter (11252): #13 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1556:33)
E/flutter (11252): #14 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1052:14)
E/flutter (11252): #15 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
E/flutter (11252): #16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
E/flutter (11252):
this is the function that makes the query (I call that function in a FutureBuilder in flutter):
Future<bool> askPlacaTurno(String idServicio)async{
var conexion = await conectarse();
var res = await conexion.query("select placa from servicios where id = ?", [idServicio]);
bool usaPlaca = false;
for(var row in res){
usaPlaca = row[0] == 'on' ? true : false;
}
return usaPlaca;
}
the connection and close connection functions:
Future conectarse() async{
final conexion = await MySqlConnection.connect(ConnectionSettings(
host: "192.168.0.18",
port: 3306,
user: "root",
password: '',
db: "gobernacion"
)
);
print("conectado a la base de datos");
return conexion;
}
Future desconectarse(MySqlConnection conexion) async{
await conexion.close();
}
Hi I am starting using flutter and this library.
Every time that I try to do something I get this error :
E/flutter (22925): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: Socket has been closed
E/flutter (22925): #0 MySqlConnection.connect (package:mysql1/src/single_connection.dart:142:5)
E/flutter (22925):
(and some more)
At this moment I am only trying to make a query.
This is my code:
Future confirmLogin() async {
var settings = ConnectionSettings(
host: '0.0.0.0',
port: 3306,
user: 'user',
password: 'password',
db: 'db'
);
final conn = await MySqlConnection.connect(settings);
var user = await conn.query("SELECT * FROM something
WHERE some = 'something'");
debugPrint("Valor รฉ: $user");
await conn.close();
}
I do not think that the problem is with my user and password.
when calling a Stored Procedure it returning an error : " PROCEDURE dble.ItemGroupViewAll can't return a result set in the given context"
var settings = new ConnectionSettings( host: 'localhost', port: 3306, user: 'root', password: '449534640', db: 'test_app' ); print("opening mysql"); var conn = await MySqlConnection.connect(settings); print("opened mysql");
10:38:55.897 11 info flutter.tools E/flutter (23735): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 54215
Error 1130 (ost '): 192.168.1.5' is not allowed to connect to this MariaDB server, this error occurs when I try to connect to MySQL Database on my computer, what does this mean?, I changed localhost to my computer IP.
there is the possibility to implement a mappedResultsQuery method just like in the postgres package to return rows as maps containing table and column names:
https://pub.dev/packages/postgres
List<Map<String, Map<String, dynamic>>> results = await connection.mappedResultsQuery(
"SELECT t.id, t.name, u.name FROM t LEFT OUTER JOIN u ON t.id=u.t_id");
for (final row in results) {
var tID = row["t"]["id"];
var tName = row["t"]["name"];
var uName = row["u"]["name"];
}
Thank you VERY MUCH for publishing this project! I've been using the library literally every day for six months or so.
I get a FormatException periodically causing a lot of development frustration .
It's sporadic... maybe 50% of the time certain INSERT statements fail. I've found that the longer in characters the INSERT statement , the more likely it is to fail. But, it will happen on very small statements like the following.
insert ignore into cu200818 select * from michelle
#1 Utf8Decoder.convert (dart:convert/utf.dart:321:42)
#2 Utf8Codec.decode (dart:convert/utf.dart:62:20)
#3 Buffer.readString (package:mysql1/src/buffer.dart:139:18)
#4 Buffer.readStringToEnd (package:mysql1/src/buffer.dart:135:31)
#5 new OkPacket (package:mysql1/src/handlers/ok_packet.dart:21:23)
#6 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:72:24)
#7 QueryStreamHandler.processResponse (package:mysql1/src/query/query_stream_handler.dart:50:18)
#8 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:327:31)
<asynchronous suspension>
#9 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:296:13)
<asynchronous suspension>
#10 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:281:13)
<asynchronous suspension>
#11 MySqlConnection.connect.<anonymous closure> (package:mysql1/src/single_connection.dart:120:13)
#12 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:90:22)
#13 _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)
#14 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)
#15 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)
#16 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:808:19)
#17 _StreamController._add (dart:async/stream_controller.dart:682:7)
#18 _StreamController.add (dart:async/stream_controller.dart:624:5)
#19 new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1580:33)
#20 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:1076:14)
#21 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#22 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#23 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#24 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
ConnectionSettings settings = ConnectionSettings(
host: 'localhost',
port: 3306,
user: 'root',
// password: '',
db: dbn = DBN,
timeout: Duration(seconds: timeoutSeconds));
conn = await MySqlConnection.connect(settings);
[โ] Flutter (Channel stable, 1.22.0, on Microsoft Windows [Version 6.1.7601], locale en-US)
โข Flutter version 1.22.0 at E:\src\flutter
โข Framework revision d408d302e2 (6 days ago), 2020-09-29 11:49:17 -0700
โข Engine revision 5babba6c4d
โข Dart version 2.10.0
[โ] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
โข Android SDK at C:\Users\pete\AppData\Local\Android\sdk
โข Platform android-30, build-tools 30.0.1
โข Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
โข Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
โข All Android licenses accepted.
[โ] Android Studio (version 4.0)
โข Android Studio at C:\Program Files\Android\Android Studio
โข Flutter plugin version 47.1.2
โข Dart plugin version 193.7361
โข Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[โ] Connected device (1 available)
โข Mi 9T (mobile) โข 844fb80a โข android-arm64 โข Android 9 (API 28)
โข No issues found!
MariaDB [coolDatabaseName]> select @@version;
+----------------+
| @@version |
+----------------+
| 10.4.8-MariaDB |
+----------------+
1 row in set (0.000 sec)
I run from Bit Bash command line on Windows 7:
bash # dart myCoolProgram.dart
alter_algorithm DEFAULT
analyze_sample_percentage 100.000000
aria_block_size 8192
aria_checkpoint_interval 30
aria_checkpoint_log_activity 1048576
aria_encrypt_tables OFF
aria_force_start_after_recovery_failures 0
aria_group_commit none
aria_group_commit_interval 0
aria_log_file_size 1073741824
aria_log_purge_type immediate
aria_max_sort_file_size 9223372036853727232
aria_page_checksum ON
aria_pagecache_age_threshold 300
aria_pagecache_buffer_size 134217728
aria_pagecache_division_limit 100
aria_pagecache_file_hash_size 512
aria_recover_options BACKUP,QUICK
aria_repair_threads 1
aria_sort_buffer_size 268434432
aria_stats_method nulls_unequal
aria_sync_log_dir NEWFILE
aria_used_for_temp_tables ON
auto_increment_increment 1
auto_increment_offset 1
autocommit ON
automatic_sp_privileges ON
back_log 80
basedir C:\\Program Files\\MariaDB 10.4\\
big_tables OFF
bind_address
binlog_annotate_row_events ON
binlog_cache_size 32768
binlog_checksum CRC32
binlog_commit_wait_count 0
binlog_commit_wait_usec 100000
binlog_direct_non_transactional_updates OFF
binlog_file_cache_size 16384
binlog_format MIXED
binlog_optimize_thread_scheduling ON
binlog_row_image FULL
binlog_stmt_cache_size 32768
bulk_insert_buffer_size 8388608
character_set_client cp850
character_set_connection cp850
character_set_database latin1
character_set_filesystem binary
character_set_results cp850
character_set_server latin1
character_set_system utf8
character_sets_dir C:\\Program Files\\MariaDB 10.4\\share\\charsets\\
check_constraint_checks ON
collation_connection cp850_general_ci
collation_database latin1_swedish_ci
collation_server latin1_swedish_ci
column_compression_threshold 100
column_compression_zlib_level 6
column_compression_zlib_strategy DEFAULT_STRATEGY
column_compression_zlib_wrap OFF
completion_type NO_CHAIN
concurrent_insert AUTO
connect_timeout 10
core_file OFF
datadir C:\\Program Files\\MariaDB 10.4\\data\\
date_format %Y-%m-%d
datetime_format %Y-%m-%d %H:%i:%s
deadlock_search_depth_long 15
deadlock_search_depth_short 4
deadlock_timeout_long 50000000
deadlock_timeout_short 10000
debug_no_thread_alarm OFF
default_master_connection
default_password_lifetime 0
default_regex_flags
default_storage_engine InnoDB
default_tmp_storage_engine
default_week_format 0
delay_key_write ON
delayed_insert_limit 100
delayed_insert_timeout 300
delayed_queue_size 1000
disconnect_on_expired_password OFF
div_precision_increment 4
encrypt_binlog OFF
encrypt_tmp_disk_tables OFF
encrypt_tmp_files OFF
enforce_storage_engine
eq_range_index_dive_limit 200
error_count 0
event_scheduler OFF
expensive_subquery_limit 100
expire_logs_days 0
explicit_defaults_for_timestamp OFF
external_user
extra_max_connections 1
extra_port 0
flush OFF
flush_time 0
foreign_key_checks ON
ft_boolean_syntax + -><()~*:""&|
ft_max_word_len 84
ft_min_word_len 4
ft_query_expansion_limit 20
ft_stopword_file (built-in)
general_log OFF
general_log_file ALVINSERVER.log
group_concat_max_len 1048576
gtid_binlog_pos
gtid_binlog_state
gtid_cleanup_batch_size 64
gtid_current_pos
gtid_domain_id 0
gtid_ignore_duplicates OFF
gtid_pos_auto_engines
gtid_seq_no 0
gtid_slave_pos
gtid_strict_mode OFF
have_compress YES
have_crypt NO
have_dynamic_loading YES
have_geometry YES
have_openssl NO
have_profiling YES
have_query_cache YES
have_rtree_keys YES
have_ssl DISABLED
have_symlink NO
histogram_size 254
histogram_type DOUBLE_PREC_HB
host_cache_size 279
hostname ALVINSERVER
identity 0
idle_readonly_transaction_timeout 0
idle_transaction_timeout 0
idle_write_transaction_timeout 0
ignore_builtin_innodb OFF
ignore_db_dirs
in_predicate_conversion_threshold 1000
in_transaction 0
init_connect
init_file
init_slave
innodb_adaptive_flushing ON
innodb_adaptive_flushing_lwm 10.000000
innodb_adaptive_hash_index ON
innodb_adaptive_hash_index_parts 8
innodb_adaptive_max_sleep_delay 150000
innodb_autoextend_increment 64
innodb_autoinc_lock_mode 1
innodb_background_scrub_data_check_interval 3600
innodb_background_scrub_data_compressed OFF
innodb_background_scrub_data_interval 604800
innodb_background_scrub_data_uncompressed OFF
innodb_buf_dump_status_frequency 0
innodb_buffer_pool_chunk_size 134217728
innodb_buffer_pool_dump_at_shutdown ON
innodb_buffer_pool_dump_now OFF
innodb_buffer_pool_dump_pct 25
innodb_buffer_pool_filename ib_buffer_pool
innodb_buffer_pool_instances 8
innodb_buffer_pool_load_abort OFF
innodb_buffer_pool_load_at_startup ON
innodb_buffer_pool_load_now OFF
innodb_buffer_pool_size 2147483648
innodb_change_buffer_max_size 25
innodb_change_buffering all
innodb_checksum_algorithm crc32
innodb_checksums ON
innodb_cmp_per_index_enabled OFF
innodb_commit_concurrency 0
innodb_compression_algorithm zlib
innodb_compression_default OFF
innodb_compression_failure_threshold_pct 5
innodb_compression_level 6
innodb_compression_pad_pct_max 50
innodb_concurrency_tickets 5000
innodb_data_file_path ibdata1:12M:autoextend
innodb_data_home_dir
innodb_deadlock_detect ON
innodb_default_encryption_key_id 1
innodb_default_row_format dynamic
innodb_defragment OFF
innodb_defragment_fill_factor 0.900000
innodb_defragment_fill_factor_n_recs 20
innodb_defragment_frequency 40
innodb_defragment_n_pages 7
innodb_defragment_stats_accuracy 0
innodb_disable_sort_file_cache OFF
innodb_doublewrite ON
innodb_encrypt_log OFF
innodb_encrypt_tables OFF
innodb_encrypt_temporary_tables OFF
innodb_encryption_rotate_key_age 1
innodb_encryption_rotation_iops 100
innodb_encryption_threads 0
innodb_fast_shutdown 1
innodb_fatal_semaphore_wait_threshold 600
innodb_file_format
innodb_file_per_table ON
innodb_fill_factor 100
innodb_flush_log_at_timeout 1
innodb_flush_log_at_trx_commit 1
innodb_flush_method unbuffered
innodb_flush_neighbors 1
innodb_flush_sync ON
innodb_flushing_avg_loops 30
innodb_force_load_corrupted OFF
innodb_force_primary_key OFF
innodb_force_recovery 0
innodb_ft_aux_table
innodb_ft_cache_size 8000000
innodb_ft_enable_diag_print OFF
innodb_ft_enable_stopword ON
innodb_ft_max_token_size 84
innodb_ft_min_token_size 3
innodb_ft_num_word_optimize 2000
innodb_ft_result_cache_limit 2000000000
innodb_ft_server_stopword_table
innodb_ft_sort_pll_degree 2
innodb_ft_total_cache_size 640000000
innodb_ft_user_stopword_table
innodb_idle_flush_pct 100
innodb_immediate_scrub_data_uncompressed OFF
innodb_io_capacity 200
innodb_io_capacity_max 2000
innodb_large_prefix
innodb_lock_schedule_algorithm fcfs
innodb_lock_wait_timeout 50
innodb_locks_unsafe_for_binlog OFF
innodb_log_buffer_size 16777216
innodb_log_checksums ON
innodb_log_compressed_pages ON
innodb_log_file_size 50331648
innodb_log_files_in_group 2
innodb_log_group_home_dir .\\
innodb_log_optimize_ddl ON
innodb_log_write_ahead_size 8192
innodb_lru_scan_depth 1024
innodb_max_dirty_pages_pct 75.000000
innodb_max_dirty_pages_pct_lwm 0.000000
innodb_max_purge_lag 0
innodb_max_purge_lag_delay 0
innodb_max_undo_log_size 10485760
innodb_monitor_disable
innodb_monitor_enable
innodb_monitor_reset
innodb_monitor_reset_all
innodb_old_blocks_pct 37
innodb_old_blocks_time 1000
innodb_online_alter_log_max_size 134217728
innodb_open_files 2000
innodb_optimize_fulltext_only OFF
innodb_page_cleaners 4
innodb_page_size 16384
innodb_prefix_index_cluster_optimization OFF
innodb_print_all_deadlocks OFF
innodb_purge_batch_size 300
innodb_purge_rseg_truncate_frequency 128
innodb_purge_threads 4
innodb_random_read_ahead OFF
innodb_read_ahead_threshold 56
innodb_read_io_threads 4
innodb_read_only OFF
innodb_replication_delay 0
innodb_rollback_on_timeout OFF
innodb_rollback_segments 128
innodb_scrub_log OFF
innodb_scrub_log_speed 256
innodb_sort_buffer_size 1048576
innodb_spin_wait_delay 4
innodb_stats_auto_recalc ON
innodb_stats_include_delete_marked OFF
innodb_stats_method nulls_equal
innodb_stats_modified_counter 0
innodb_stats_on_metadata OFF
innodb_stats_persistent ON
innodb_stats_persistent_sample_pages 20
innodb_stats_sample_pages 8
innodb_stats_traditional ON
innodb_stats_transient_sample_pages 8
innodb_status_output OFF
innodb_status_output_locks OFF
innodb_strict_mode ON
innodb_sync_array_size 1
innodb_sync_spin_loops 30
innodb_table_locks ON
innodb_temp_data_file_path ibtmp1:12M:autoextend
innodb_thread_concurrency 0
innodb_thread_sleep_delay 10000
innodb_tmpdir
innodb_undo_directory .\\
innodb_undo_log_truncate OFF
innodb_undo_logs 128
innodb_undo_tablespaces 0
innodb_use_atomic_writes ON
innodb_use_native_aio ON
innodb_version 10.4.8
innodb_write_io_threads 4
insert_id 0
interactive_timeout 28800
join_buffer_size 262144
join_buffer_space_limit 2097152
join_cache_level 2
keep_files_on_create OFF
key_buffer_size 134217728
key_cache_age_threshold 300
key_cache_block_size 1024
key_cache_division_limit 100
key_cache_file_hash_size 512
key_cache_segments 0
large_files_support ON
large_page_size 0
large_pages OFF
last_gtid
last_insert_id 0
lc_messages en_US
lc_messages_dir
lc_time_names en_US
license GPL
local_infile ON
lock_wait_timeout 86400
log_bin OFF
log_bin_basename
log_bin_compress OFF
log_bin_compress_min_len 256
log_bin_index
log_bin_trust_function_creators OFF
log_disabled_statements sp
log_error C:\\Program Files\\MariaDB 10.4\\data\\ALVINSERVER.err
log_output FILE
log_queries_not_using_indexes OFF
log_slave_updates OFF
log_slow_admin_statements ON
log_slow_disabled_statements sp
log_slow_filter admin,filesort,filesort_on_disk,filesort_priority_queue,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
log_slow_rate_limit 1
log_slow_slave_statements ON
log_slow_verbosity
log_tc_size 24576
log_warnings 2
long_query_time 10.000000
low_priority_updates OFF
lower_case_file_system ON
lower_case_table_names 1
master_verify_checksum OFF
max_allowed_packet 16777216
max_binlog_cache_size 18446744073709547520
max_binlog_size 1073741824
max_binlog_stmt_cache_size 18446744073709547520
max_connect_errors 100
max_connections 151
max_delayed_threads 20
max_digest_length 1024
max_error_count 64
max_heap_table_size 16777216
max_insert_delayed_threads 20
max_join_size 18446744073709551615
max_length_for_sort_data 1024
max_long_data_size 16777216
max_password_errors 4294967295
max_prepared_stmt_count 16382
max_recursive_iterations 4294967295
max_relay_log_size 1073741824
max_rowid_filter_size 131072
max_seeks_for_key 4294967295
max_session_mem_used 9223372036854775807
max_sort_length 1024
max_sp_recursion_depth 0
max_statement_time 0.000000
max_tmp_tables 32
max_user_connections 0
max_write_lock_count 4294967295
metadata_locks_cache_size 1024
metadata_locks_hash_instances 8
min_examined_row_limit 0
mrr_buffer_size 262144
multi_range_count 256
myisam_block_size 1024
myisam_data_pointer_size 6
myisam_max_sort_file_size 2146435072
myisam_mmap_size 18446744073709551615
myisam_recover_options BACKUP,QUICK
myisam_repair_threads 1
myisam_sort_buffer_size 134216704
myisam_stats_method NULLS_UNEQUAL
myisam_use_mmap OFF
mysql56_temporal_format ON
named_pipe OFF
net_buffer_length 16384
net_read_timeout 30
net_retry_count 10
net_write_timeout 60
old OFF
old_alter_table DEFAULT
old_mode
old_passwords OFF
open_files_limit 6230
optimizer_prune_level 1
optimizer_search_depth 62
optimizer_selectivity_sampling_limit 100
optimizer_switch index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on,extended_keys=on,exists_to_in=on,orderby_uses_equalities=on,condition_pushdown_for_derived=on,split_materialized=on,condition_pushdown_for_subquery=on,rowid_filter=on,condition_pushdown_from_having=on
optimizer_trace enabled=off
optimizer_trace_max_mem_size 1048576
optimizer_use_condition_selectivity 4
performance_schema OFF
performance_schema_accounts_size -1
performance_schema_digests_size -1
performance_schema_events_stages_history_long_size -1
performance_schema_events_stages_history_size -1
performance_schema_events_statements_history_long_size -1
performance_schema_events_statements_history_size -1
performance_schema_events_waits_history_long_size -1
performance_schema_events_waits_history_size -1
performance_schema_hosts_size -1
performance_schema_max_cond_classes 80
performance_schema_max_cond_instances -1
performance_schema_max_digest_length 1024
performance_schema_max_file_classes 50
performance_schema_max_file_handles 32768
performance_schema_max_file_instances -1
performance_schema_max_mutex_classes 200
performance_schema_max_mutex_instances -1
performance_schema_max_rwlock_classes 40
performance_schema_max_rwlock_instances -1
performance_schema_max_socket_classes 10
performance_schema_max_socket_instances -1
performance_schema_max_stage_classes 160
performance_schema_max_statement_classes 202
performance_schema_max_table_handles -1
performance_schema_max_table_instances -1
performance_schema_max_thread_classes 50
performance_schema_max_thread_instances -1
performance_schema_session_connect_attrs_size -1
performance_schema_setup_actors_size 100
performance_schema_setup_objects_size 100
performance_schema_users_size -1
pid_file C:\\Program Files\\MariaDB 10.4\\data\\ALVINSERVER.pid
plugin_dir C:\\Program Files\\MariaDB 10.4\\lib\\plugin\\
plugin_maturity gamma
port 3306
preload_buffer_size 32768
profiling OFF
profiling_history_size 15
progress_report_time 5
protocol_version 10
proxy_protocol_networks
proxy_user
pseudo_slave_mode OFF
pseudo_thread_id 74
query_alloc_block_size 16384
query_cache_limit 1048576
query_cache_min_res_unit 4096
query_cache_size 1048576
query_cache_strip_comments OFF
query_cache_type OFF
query_cache_wlock_invalidate OFF
query_prealloc_size 24576
rand_seed1 982909590
rand_seed2 158115708
range_alloc_block_size 4096
read_binlog_speed_limit 0
read_buffer_size 131072
read_only OFF
read_rnd_buffer_size 262144
relay_log
relay_log_basename
relay_log_index
relay_log_info_file relay-log.info
relay_log_purge ON
relay_log_recovery OFF
relay_log_space_limit 0
replicate_annotate_row_events ON
replicate_do_db
replicate_do_table
replicate_events_marked_for_skip REPLICATE
replicate_ignore_db
replicate_ignore_table
replicate_wild_do_table
replicate_wild_ignore_table
report_host
report_password
report_port 3306
report_user
rowid_merge_buff_size 8388608
rpl_semi_sync_master_enabled OFF
rpl_semi_sync_master_timeout 10000
rpl_semi_sync_master_trace_level 32
rpl_semi_sync_master_wait_no_slave ON
rpl_semi_sync_master_wait_point AFTER_COMMIT
rpl_semi_sync_slave_delay_master OFF
rpl_semi_sync_slave_enabled OFF
rpl_semi_sync_slave_kill_conn_timeout 5
rpl_semi_sync_slave_trace_level 32
secure_auth ON
secure_file_priv
secure_timestamp NO
server_id 1
session_track_schema ON
session_track_state_change OFF
session_track_system_variables autocommit,character_set_client,character_set_connection,character_set_results,time_zone
session_track_transaction_info OFF
skip_external_locking ON
skip_name_resolve OFF
skip_networking OFF
skip_parallel_replication OFF
skip_replication OFF
skip_show_database OFF
slave_compressed_protocol OFF
slave_ddl_exec_mode IDEMPOTENT
slave_domain_parallel_threads 0
slave_exec_mode STRICT
slave_load_tmpdir C:\\Windows\\SERVIC~2\\NETWOR~1\\AppData\\Local\\Temp
slave_max_allowed_packet 1073741824
slave_net_timeout 60
slave_parallel_max_queued 131072
slave_parallel_mode conservative
slave_parallel_threads 0
slave_parallel_workers 0
slave_run_triggers_for_rbr NO
slave_skip_errors OFF
slave_sql_verify_checksum ON
slave_transaction_retries 10
slave_transaction_retry_errors 1158,1159,1160,1161,1205,1213,1429,2013,12701
slave_transaction_retry_interval 0
slave_type_conversions
slow_launch_time 2
slow_query_log OFF
slow_query_log_file ALVINSERVER-slow.log
socket MySQL
sort_buffer_size 2097152
sql_auto_is_null OFF
sql_big_selects ON
sql_buffer_result OFF
sql_log_bin ON
sql_log_off OFF
sql_mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql_notes ON
sql_quote_show_create ON
sql_safe_updates OFF
sql_select_limit 18446744073709551615
sql_slave_skip_counter 0
sql_warnings OFF
ssl_ca
ssl_capath
ssl_cert
ssl_cipher
ssl_crl
ssl_crlpath
ssl_key
standard_compliant_cte ON
storage_engine InnoDB
stored_program_cache 256
strict_password_validation ON
sync_binlog 0
sync_frm ON
sync_master_info 10000
sync_relay_log 10000
sync_relay_log_info 10000
system_time_zone America/New_York
system_versioning_alter_history ERROR
system_versioning_asof DEFAULT
table_definition_cache 400
table_open_cache 2000
table_open_cache_instances 8
tcp_keepalive_interval 0
tcp_keepalive_probes 0
tcp_keepalive_time 0
tcp_nodelay ON
thread_cache_size 151
thread_concurrency 10
thread_handling pool-of-threads
thread_pool_idle_timeout 60
thread_pool_max_threads 65536
thread_pool_min_threads 1
thread_pool_mode windows
thread_pool_oversubscribe 3
thread_pool_prio_kickup_timer 1000
thread_pool_priority auto
thread_pool_size 4
thread_pool_stall_limit 500
thread_stack 299008
time_format %H:%i:%s
time_zone SYSTEM
timed_mutexes OFF
timestamp 1601907070.135897
tls_version TLSv1.1,TLSv1.2,TLSv1.3
tmp_disk_table_size 18446744073709551615
tmp_memory_table_size 16777216
tmp_table_size 16777216
tmpdir C:\\Windows\\SERVIC~2\\NETWOR~1\\AppData\\Local\\Temp
transaction_alloc_block_size 8192
transaction_prealloc_size 4096
tx_isolation REPEATABLE-READ
tx_read_only OFF
unique_checks ON
updatable_views_with_limit YES
use_stat_tables PREFERABLY_FOR_QUERIES
userstat OFF
version 10.4.8-MariaDB
version_comment mariadb.org binary distribution
version_compile_machine x64
version_compile_os Win64
version_malloc_library system
version_source_revision 4c2464b87d58a43d1292e166bae6720b51f4b000
version_ssl_library WolfSSL 4.1.0
wait_timeout 28800
warning_count 0
#0 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:85:7)
#1 ExecuteQueryHandler.processResponse (package:mysql1/src/prepared_statements/execute_query_handler.dart:339:16)
#2 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
#3 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
#4 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
#5 MySqlConnection.connect. (package:mysql1/src/single_connection.dart:120:13)
#6 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:11)
#7 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#10 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#11 _StreamController._add (dart:async/stream_controller.dart:640:7)
#12 _StreamController.add (dart:async/stream_controller.dart:586:5)
#13 new _RawSocket. (dart:io-patch/socket_patch.dart:1377:33)
#14 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:897:14)
#15 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#17 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#18 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
#0 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:85:7)
#1 ExecuteQueryHandler.processResponse (package:mysql1/src/prepared_statements/execute_query_handler.dart:339:16)
#2 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)
#3 ReqRespConnection._handleHeader (package:mysql1/src/single_connection.dart:298:13)
#4 ReqRespConnection._readPacket (package:mysql1/src/single_connection.dart:283:7)
#5 MySqlConnection.connect. (package:mysql1/src/single_connection.dart:120:13)
#6 BufferedSocket._onData (package:mysql1/src/buffered_socket.dart:93:11)
#7 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#8 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#9 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#10 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:764:19)
#11 _StreamController._add (dart:async/stream_controller.dart:640:7)
#12 _StreamController.add (dart:async/stream_controller.dart:586:5)
#13 new _RawSocket. (dart:io-patch/socket_patch.dart:1377:33)
#14 _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:897:14)
#15 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#16 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#17 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#18 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
I believe this is the same question asked by other user more than a year ago ..but with no answer .
class User_Register{
MySqlConnection connection;
ConnectionSettings connection_settings;
Results results;
String email;
String password;
ConnectionSettings conn_settings() {
connection_settings = new ConnectionSettings(
host: 'localhost',
port: 3306,
user: 'user',
password: 'password',
db: 'db',
timeout: Duration(seconds: 30),
);
return connection_settings;
}
Future<Results> user_register(String email,String password) async{
this.email = email;
this.password = password;
try{
connection = await MySqlConnection.connect(connection_settings);
results =(connection != null ? await connection.query('insert into tableName
(dataEmailDB,dataPassDB) values(?,?)',[email,password]) : null);
print('Inserted RowID : ${results.insertId}');
}on HttpException catch(err){
results = null;
err.message;
}finally{
}
await connection.close();
return results;
}
I get this exception :
E/flutter ( 5657): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The getter 'useSSL' was called on null.
E/flutter ( 5657): Receiver: null
E/flutter ( 5657): Tried calling: useSSL
E/flutter ( 5657): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
E/flutter ( 5657): #1 MySqlConnection.connect (package:mysql1/src/single_connection.dart:110:15)
useSSL throws this exception eventhough useSSL is not used and assert(!c.useSSL) should verify this !!
What could be the couse and the solution please.
When i use 0.17.1 client connect to the mysql 5.5.10 and exec query sql, there is a exception:
Error 2027 (HY000): MySQLToType(15,0) failed: unsupported type: 15
But it's perfect connect to mysql 5.7.28.
Is there something wrong go here ? how do I to fix it?
var res = await conn.query(
"UPDATE levelDetails SET ?=? WHERE userid=?",
[Level, percentage, userId]);
Exception has occurred.
MySqlException (Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?=? WHERE userid=?' at line 1)
Please help me..
im not able to update query with dynamic column name
Sometimes it's easier to just connect with a connection string. Heroku, for example, adds it to the environmental variables as soon as a database is installed. It's formatted as
mysql://username:password@host:port/database
Would be nice if a constructor that accepts it was added.
`import 'package:flutter/material.dart';
import 'package:mysql1/mysql1.dart';
//void main() => runApp(new MyApp());
void main() async {
final conn = await MySqlConnection.connect(new ConnectionSettings(
host: 'localhost',
port: xxxx,
user: 'xxx',
password: 'xxxx',
db: 'xxxx'));
var results = await conn.query('select * from xxxxxxx');
for (var row in results) {
print('Name: ${row[0]}');
}
}`
I set SSL to false, the connection works and returns but it presents this error that ends up entering my try.
After using the plug-in package apk installation after the white screen
No clue what to do... lib seems very unreliable. I'm running a
INSERT IGNORE INTO product () VALUES ()
for 8000 records... it fails using connection::query(), works fine in queryMulti(), so i thought it would be the length of the query string... my sweet spot was 315 records at a time in a single query... max query length at 39100 characters. Otherwise, same exception.
After truncate the product table, i was able to run the query() with the 8k products without errors... I just don't understand how the buffer.readString() gets corrupted on particular cases.
This is the exception:
[SEVERE] FormatException: Bad UTF-8 encoding 0xb8 (at offset 0) #0 _Utf8Decoder.convert (dart:convert/utf.dart:530:13)
#1 Utf8Decoder.convert (dart:convert/utf.dart:327:13)
#2 Utf8Codec.decode (dart:convert/utf.dart:59:56)
#3 Buffer.readString (package:mysql1/src/buffer.dart:178:21)
#4 Buffer.readStringToEnd (package:mysql1/src/buffer.dart:172:31)
#5 new OkPacket (package:mysql1/src/handlers/ok_packet.dart:21:23)
#6 Handler.checkResponse (package:mysql1/src/handlers/handler.dart:80:28)
#7 QueryStreamHandler.processResponse (package:mysql1/src/query/query_stream_handler.dart:49:18)
#8 ReqRespConnection._handleData (package:mysql1/src/single_connection.dart:329:31)###
Right after posting the issue... I saw that utf8.decode() has a malformed param. Seems to fix the error:
// buffer.dart (line 178)
String s = utf8.decode(_list.sublist(_readPos, _readPos + length),allowMalformed: true);
Please, keep updating the package... is currently the only solution available for Dart.
var settings = new ConnectionSettings(
host: 'localhost',
port: 3306,
user: 'root',
password: '449534640',
db: 'test_app'
);
print("opening mysql");
var conn = await MySqlConnection.connect(settings);
print("opened mysql");
10:38:55.897 11 info flutter.tools E/flutter (23735): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 54215
i am trying to run an example but i cant get it right
I leave my code below:
import 'package:mysql1/mysql1.dart';
import 'dart:async';
Future conexionDB() async{
var settings = new ConnectionSettings(
host: '10.0.2.2',
port: 3306,
user: 'root',
password: '',
db: 'NearMarketDB'
);
var conn = await MySqlConnection.connect(settings);
return conn;
}
void registrarUsuario(String nombre, String dni, String telefono, String email, String contrasenia, String direccion, String provincia, String codigoPostal, String fechaNacimiento) async{
dynamic conn = conexionDB();
var result = await conn.query('insert into nm_usuarios (nombre, dni, telefono, email, contrasenia, direccion, provincia, codigoPostal, fechaNacimiento) '
'values (?, ?, ?)', [nombre, dni, telefono, email, contrasenia, direccion, provincia, codigoPostal, fechaNacimiento]);
}
Here is the error message:
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: Class 'Future' has no instance method 'query'.
Is there any way to pool connections?
When I import 'package:mysql1/mysql1.dart' package, I am unable to use Row. It says Row is defined in 'package:flutter/src/widgets/basic.dart' as well as 'package:mysql1/mysql1.dart'.
So I have to import the former package explicitly.
I generated the apk in release mode, I install it on my phone and I never get the connection done to the DB, I do exactly the same using debug mode, It works awesome !!
Thank You in Advance.
pls add an option to update sql query .ignore if it has already and pls explain me to update using this API
I have been getting this below error while I try to use mySQL1 package to directly talk to the database using flutter.
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 57351
Not sure why it is trying to use a different prot and not the one I am asking to use.....
Thanks!
Here is my code:
import 'package:mysql1/mysql1.dart'; void mySQLConnect () async{ final conn = await MySqlConnection.connect(new ConnectionSettings( host: 'localhost', port: 3306, user: 'xxxx', db: 'xxxx', password: xxxx' )); var results = await conn .query('select * from users'); for (var row in results) { print('UserName: ${row[0]}, Name: ${row[1]}'); } await conn.close(); }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.