Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: connect to remote database via python script
Post: RE: connect to remote database via python script

current system ip for example: x.y.z.k I am trying to connect to the remote database of the remote server i.e 1.2.3.4 connecting to 1.2.3.4 from x.y.z.k Error:# mysql --host=1.2.3.4 --user=testuse...
sunstar20 General Coding Help 5 5,365 Apr-23-2018, 10:24 AM
    Thread: connect to remote database via python script
Post: RE: connect to remote database via python script

Getting the below error: # python test.pyError:Traceback (most recent call last): File "test.py", line 6, in <module> db = MySQLdb.connect("1.2.3.4","testuser","test123","test" ) File "...
sunstar20 General Coding Help 5 5,365 Apr-23-2018, 09:55 AM
    Thread: connect to remote database via python script
Post: connect to remote database via python script

Hi, I am able to connect to local database via python script. For ex: MySQLdb.connect("localhost","testuser","test123","test" ) I want to connect to remote database via python script. Could you pl...
sunstar20 General Coding Help 5 5,365 Apr-23-2018, 09:20 AM
    Thread: How to acquire MySQLdb
Post: RE: How to acquire MySQLdb

-blr1-01:/# sudo apt install python-mysqldb Reading package lists... Done Building dependency tree Reading state information... Done python-mysqldb is already the newest version (1.3.7-1build2). 0 upg...
sunstar20 General Coding Help 8 5,999 Apr-23-2018, 05:16 AM
    Thread: How to acquire MySQLdb
Post: RE: How to acquire MySQLdb

2.7.12 (default, Dec 4 2017, 14:50:18)
sunstar20 General Coding Help 8 5,999 Apr-23-2018, 04:36 AM
    Thread: mysql db connection using python
Post: RE: mysql db connection using python

I'm using python2.7
sunstar20 General Coding Help 13 12,037 Apr-21-2018, 05:45 PM
    Thread: How to acquire MySQLdb
Post: RE: How to acquire MySQLdb

OS: Ubuntu16.04
sunstar20 General Coding Help 8 5,999 Apr-21-2018, 07:27 AM
    Thread: How to acquire MySQLdb
Post: RE: How to acquire MySQLdb

getting the below error: Error:Collecting mysql Downloading https://files.pythonhosted.org/packages/06/ef/c4efbf2a51fb46aba9be03a973638d9539c9ca10a5259b2cbb1a66133b2e/mysql-0.0.1.tar.gz Collecting ...
sunstar20 General Coding Help 8 5,999 Apr-21-2018, 05:58 AM
    Thread: How to acquire MySQLdb
Post: How to acquire MySQLdb

On checking python command prompt for 'import MySQLdb', the below error message is shown. >>> import MySQLdbError:Traceback (most recent call last): File "<stdin>", line 1, in <mod...
sunstar20 General Coding Help 8 5,999 Apr-21-2018, 05:29 AM
    Thread: mysql db connection using python
Post: RE: mysql db connection using python

On adding logging.exception, the below error message is shown: Error:2018-04-21 04:35:58,314 ERROR Unable to initialize database, check settings! Traceback (most recent call last): File "/opt/ejabb...
sunstar20 General Coding Help 13 12,037 Apr-21-2018, 04:39 AM
    Thread: mysql db connection using python
Post: RE: mysql db connection using python

Thank you for your response.Let me check How can I connect the existing mysql database
sunstar20 General Coding Help 13 12,037 Apr-20-2018, 09:00 AM
    Thread: mysql db connection using python
Post: RE: mysql db connection using python

I already have mysql in the system. [inline]root@HR01:/# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2135 Server version: 5.7.21-0ubuntu0.16.04.1-log (...
sunstar20 General Coding Help 13 12,037 Apr-20-2018, 07:08 AM
    Thread: mysql db connection using python
Post: RE: mysql db connection using python

let me check Thanks a lot but the database is not connected. getting the error message: Error:Unable to initialize database, check settings!are my settings correct ? db_name="test" db_user="root" d...
sunstar20 General Coding Help 13 12,037 Apr-19-2018, 06:54 AM
    Thread: mysql db connection using python
Post: mysql db connection using python

Hi, I am new to python. I have an ejabberd chat server. I have an external authentication python file to connect to mysql db. On adding the below code and restarting the chat server, the external a...
sunstar20 General Coding Help 13 12,037 Apr-19-2018, 06:48 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020