question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database operation failed on mysql 8.0

See original GitHub issue
import { Client } from 'https://deno.land/x/mysql@1.2.3/mod.ts';
const config = {
  timeout: 10000,
  pool: 3,
  debug: true,
  hostname: '127.0.0.1',
  username: 'admin001',
  password: 'admin001'
};

let client = await new Client().connect(config);
await client.execute(`CREATE DATABASE mydemo;`);
await client.execute(`USE mydemo;`);
await client.execute(`
    CREATE TABLE user_info (
        id int(11) NOT NULL AUTO_INCREMENT,
        name varchar(100) NOT NULL,
        is_top tinyint(1) default 0,
        created_at timestamp not null default current_timestamp,
        PRIMARY KEY (id)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
`);
await client.close();
console.log('success!')

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
wenjoycommented, Aug 9, 2020

@manyuanrong Thanks. I tried with jsencrypt, however it cant support oaep padding. I have to find other ways.

I do get two methods, one is bridge to rust’s rsa crate, the other is a bundle of forge.

I choose the later as it has none business of platform difference at all.

And now seems we have extra option thanks @invisal . I would try to integrate that lib when I get time.

1reaction
wenjoycommented, Jun 16, 2020

@magichim It’s not a working code. I alos try it by uncommenting the code. SQL excution result will return in mess order.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 Server Error Message Reference - MySQL :: Developer Zone
Occurs for failure to create or copy a file needed for some operation. Possible causes: Permissions problem for source file; destination file already...
Read more >
Database operation failed on mysql 8.0 · Issue #16 - GitHub
@magichim It's not a working code. I alos try it by uncommenting the code. SQL excution result will return in mess order.
Read more >
4 Changes in MySQL 8.0.31 (2022-10-11, General Availability)
InnoDB : A failure occurred while upgrading a MySQL instance with a MySQL 5.6 data directory containing user-created table with a particular ...
Read more >
Cloud SQL for MySQL error messages
Try this: Connect to the database (for example, using Cloud Shell) and login as root. Execute USE mysql; . Grant the ...
Read more >
MySQL Database Export Errors and Solutions - WebDevStudios
Issue 1: MySQL database export error due to client/server version mismatch ... TL;DR: Make sure that the version of mysqldump that your MySQL ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found