Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Failed remote mysql in Bluemix

270007MV9V gravatar image
Question by Gemblue  (3) | Sep 28, 2014 at 03:58 PM how-tomysqlibmcloudremote

After binding mysql service on my app. I got credentials like this

{ "mysql-5.5": { "name": "mysql-wp", "label": "mysql-5.5", "plan": "100", "credentials": { "name": "da459bf3d5b6a42799e6fd14ea8a38e05", "hostname": "198.11.234.73", "host": "198.11.234.73", "port": 3307, "user": "xx", "username": "xx", "password": "xx", "uri": "mysql://uxwlzmc839lBN:pmhfru4KyYOiT@198.11.234.73:3307/da459bf3d5b6a42799e6fd14ea8a38e05" } } }

I want to create and manage database remotely via Mysql Workbench. When i put the credential for testing the connection, error occured . It said "Failed to Connect Mysql Server @ ..."

Other one: Does Bluemix provide Mysql Management Tools on the fly like "PHPMyAdmin"?

Thanks in Advance.

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

2 answers

  • Sort: 
100000UTCP gravatar image
Accepted answer

Answer by Sanjay.Joshi (1482) | Sep 28, 2014 at 09:01 PM

Hi Gemblue,

You've got a couple of options. Either use the ClearDB MySQL service which will give you credentials and a URL to a public IP [ I have then successfully used local tools such as Sequel Pro. More info here or you can choose to bind your existing "experimental" MySQL service to a PHPMyAdmin app that you deploy within your own Bluemix org/space. You can find a Bluemix/CloudFoundry friendly PHPMyAdmin deploy @ https://github.com/dmikusa-pivotal/cf-ex-phpmyadmin . I've used this PHPMyAdmin tool successfully as well. You will need to leverage the username and password provided by the credentials in the VCAP_SERVICES as your login. One caveat is on file upload limits (for import of MySQL exports). If you find the limit too small (eg. 2 Mb), then you'll need to fork the php buildpack and adjust its php.ini files yourself. Then repush the PHPMyAdmin app again with your modified buildpack.

Good luck.

Comment

People who like this

  0   Show 1   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270007MV9V gravatar image Gemblue (3)   Sep 29, 2014 at 01:40 PM 0
Share

Thank you Sanjay.

0600013VC8 gravatar image

Answer by lucaamato (1) | Oct 01, 2014 at 09:03 AM

Hi Sanjay,

I try to use phpmyadmin to manage a db instance on blumix. I take the #2002 error code when I try to connect via phpmyadmin interface.

What parameters did you use in your test ?

Many thanks in advance

I update my config.inc.php file in a following mode

$i++;

$cfg['Servers'][$i]['host']='myServerId'; $cfg['Servers'][$i]['port']=myportId; $cfg['Servers'][$i]['user']='myUser'; $cfg['Servers'][$i]['password']='myPsw'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['compress'] = false;

I retrieve the data from the file provide me from blumix interface

"mysql-5.5": { "name": "mysql", "label": "mysql-5.5", "plan": "100", "credentials": { "name": "db9f6faca3e2e49169e8adefc1f526c9c", "hostname": "myServerId", "host": "myServerId", "port": myportId, "user": "myUser", "username": "myUser", "password": "myPsw", "uri": "-------" } } }

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

No one has followed this question yet.

Answers

Answers & comments

Related questions

Node process not closing connections 0 Answers

Accessing MySQL service in Bluemix 1 Answer

bluemix cups service - remote mysql connection 2 Answers

Spring MVC - Remote DB Cups 1 Answer

Application Security on Cloud. IBMDomainVerification not recognized 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges