cleardb

How to update the version of the MySQL engine in ClearDB?

纵饮孤独 提交于 2021-02-08 15:06:17
问题 By default, heroku only works with the postgreSQL database. However, there is a ClearDB plugin that allows you to use a MySQL database. The problem is that this plugin uses the old version of the MySQL 5.5.62 engine. When connecting to the server using MySQL Workbench, a warning appears Incompatible/nonstandard server version or connection protocol detected (5.5.62). A connection to this database can be established but some MYSQL Workbench features may not work properly since the database is

mySQL auto increment increasing by 10 (ClearDB & Node)

拜拜、爱过 提交于 2020-07-28 03:49:32
问题 I have a simple table in ClearDB: CREATE TABLE `users` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) DEFAULT NULL, `message` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; I'm using Node to insert data into the table via: var post = {username: response.user.name, message: message.text}; connection.query("INSERT INTO users SET ?", post, function(err, rows, fields) { if (err) { console.log('error: ', err);

mySQL auto increment increasing by 10 (ClearDB & Node)

不羁的心 提交于 2020-07-28 03:49:05
问题 I have a simple table in ClearDB: CREATE TABLE `users` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) DEFAULT NULL, `message` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; I'm using Node to insert data into the table via: var post = {username: response.user.name, message: message.text}; connection.query("INSERT INTO users SET ?", post, function(err, rows, fields) { if (err) { console.log('error: ', err);

mySQL auto increment increasing by 10 (ClearDB & Node)

。_饼干妹妹 提交于 2020-07-28 03:48:26
问题 I have a simple table in ClearDB: CREATE TABLE `users` ( `id` smallint(6) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(100) DEFAULT NULL, `message` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=INNODB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; I'm using Node to insert data into the table via: var post = {username: response.user.name, message: message.text}; connection.query("INSERT INTO users SET ?", post, function(err, rows, fields) { if (err) { console.log('error: ', err);

MYSQL - set default as NULL to all columns, where default is not set

牧云@^-^@ 提交于 2019-12-31 03:46:08
问题 I have about 12 databases, each with 50 tables and most of them with 30+ columns; the db was running in strict mode as OFF, but now we had to migrate the db to cleardb service which by default has strict mode as ON. all the tables that had "Not Null" constraint, the inserts have stopped working, just because the default values are not being passed; while in case of strict mode as OFF if the value are not provided, the MYSQL will presume the default value of the column datatype. Is there a

reconnect keyword argument on ClearDB default connection string causing errors with MySQLdb

泪湿孤枕 提交于 2019-12-25 00:40:17
问题 I uploaded a Django app to Heroku and than provision the cleardb add-on using these 3 commands from Heroku documentation: heroku addons:create cleardb:ignite heroku config | grep CLEARDB_DATABASE_URL heroku config:set DATABASE_URL='mysql://adffdadf2341:adf4234@us-cdbr-east.cleardb.com/heroku_db?reconnect=true' it seems to be O.K and the app is running (but without database). now I try to run: $ heroku run python manage.py migrate and this is the error I get: Traceback (most recent call last):

How to obtain service credentials for a service instance created on IBM Bluemix without binding the instance to an application on Bluemix?

不想你离开。 提交于 2019-12-24 02:18:34
问题 I have created a ClearDB MySQL instance on IBM Bluemix. Can I see the credentials (hostname, username, password etc) without binding the instance to an application running on Bluemix ? Thank you, Sandhya 回答1: It depends if the service provider implemented the Service Keys feature. If they have, you can generate new credentials by clicking on "Service Credentials" on the service dashboard page. The ClearDB currently requires you to bind it to a Cloud Foundry application for service credentials

Auto increment by 1 in MySQL with clearDB

若如初见. 提交于 2019-12-22 04:56:10
问题 I am using Windows Azure with clearDB. Current database auto-increment value is 10. I want it as 1. I tried to run these commands in PHPMyAdmin with, 1) set global auto_increment_increment = 1; set global auto_increment_offset = 1; ERROR: #1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation 2) set auto_increment_increment = 1; set auto_increment_offset = 1; After that I checked it by this command, SHOW VARIABLES LIKE 'auto_inc%'; RESULT: Variable_name

reconnect keyword argument on ClearDB default connection string causing errors with MySQLdb

半城伤御伤魂 提交于 2019-12-17 20:58:34
问题 I uploaded a Django app to Heroku and than provision the cleardb add-on using these 3 commands from Heroku documentation: heroku addons:create cleardb:ignite heroku config | grep CLEARDB_DATABASE_URL heroku config:set DATABASE_URL='mysql://adffdadf2341:adf4234@us-cdbr-east.cleardb.com/heroku_db?reconnect=true' it seems to be O.K and the app is running (but without database). now I try to run: $ heroku run python manage.py migrate and this is the error I get: Traceback (most recent call last):

azurewebsites/IIS 7 internal server when connecting to remote MySQL db using Yii 2 framework

对着背影说爱祢 提交于 2019-12-13 22:15:47
问题 I have a Azure WebApp + Services written in Yii and Yii 2 respectively. The database is MySQL db from ClearDB . i am hosting it on using the empty Php app . Reference: https://blogs.msdn.microsoft.com/azureossds/2015/07/23/migrate-yii-framework-application-to-azure-web-app/ The webapp is working fine. In services when trying to connect to the ClearDB MySQL its working fine in XAMPP. When use the same code in IIS 7 in my local (to simulate azurewebsites) i am receiving: i am getting error 500