When I use migrate up using queryExecute I either get no migrations found or if I reload I get:
C:\Users\rickn.CommandBox\cfml\modules\commandbox-migrations\modules\cfmigrations\models\QBMigrationManager.cfc
CREATE TABLE ‘users’ (
‘id’ INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
‘username’ VARCHAR(255) NOT NULL UNIQUE,
‘email’ VARCHAR(255) NOT NULL UNIQUE,
‘password’ VARCHAR(255) NOT NULL,
‘createddate’ TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
‘modifieddate’ TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
constraint ‘pk_users_id’ PRIMARY KEY (‘id’)
)
If I use schema.create everything works fine???
The other issue is if I try to query a table using queryExecute I get this test error:
-
can list all users (4,015 ms) - Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago.
C:\inetpub\wwwroot\SoapBox\coldbox-zero-to-hero-october\models\userService.cfc:18
16:17: function list(){18: return queryExecute( "select * from users", {}, { returntype = "array" } );19: }20: }
lucee.runtime.exp.DatabaseException: Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 1 milliseconds ago. at jdk.internal.reflect.GeneratedConstructorAccessor29.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) at com.mysql.jdbc.Util.handleNewInstance(Util.java:404) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:981) at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:164) at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4801) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1643) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1215) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2255) at co
I am really having a hard time understanding why these things don’t work?
Thank you for any help!!!