Importing Data From Phpmyadmin

paulizaz

New Member
Joined
Mar 22, 2007
Messages
15
Is it possible to import data to a spreadsheet in a particular format?

I want to import from an SQL database which is usually managed through PhpMyAdmin.
I want to create a spreadsheet from two main database tables so the spreadsheet looks like this:

Human issues:
ClientName Events Previous Open Closed
Client1 342 150 122 220
Client2 87 42 30 57
Client3 23 10 3 20

Technical issues:
ClientName Events Previous Open Closed
Client1 342 150 122 220
Client2 87 42 30 57
Client3 23 10 3 20

Where Client name is in another table linked through an ID in the table.
Where Events is calculating the amount of entries in the table this month.
Where Previous is calculating the amount of entries in the table last month.
Where Open is a status field option in the table.
Where Closed is another status field option in the table.

Is it possible to import data to a spreadsheet in a particular format like this?
Is it possible to automate this data capture on a Monthly basis, I heard a driver can be used but previously this hasnt worked.

Any help very much appreciated.....
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Well, I would do this by passing a SQL Query to your MySQL Database.

You will need to connect using a connection string such as

Code:
Driver={MySQL ODBC 3.51 Driver};Server=data.domain.com;Port=3306;Database=myDataBase;User=myUsername;Password=myPassword;Option=3;

And then pass your SQL query to return the recordset to Excel.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top