You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try{constdb=awaitnewClient().connect({username: "root"});constresult=awaitdb.query("show variables like 'version';")}catch(err){console.error(err);}
Is this intended behaviour? If yes why does creating the connection not throw an error? It also does not show the error that it is accessing the localhost URL when running without any permissions.
The text was updated successfully, but these errors were encountered:
The following code snippet does not raise any error when the MySQL server is not running or if it refuses the connection.
The error is raised only when a query is fired.
Is this intended behaviour? If yes why does creating the connection not throw an error? It also does not show the error that it is accessing the localhost URL when running without any permissions.
The text was updated successfully, but these errors were encountered: