delphi and mysql DB help - mysql

I want to create an application for my friends ,Its like a slam book
I want like this
in nameditbox when i entered name it has to fetch data from database and have to display in respected fields
example : nick name editboz :nick
number:1111
2.moreover i want to add to database new entry from my application by clicking add button
is it possible to edit already existed friends name details ?
I never worked with mysql (even i dont know much ), and i never worked in delphi in accordance with mysql ,not normal dlephi though .
is there any already done project ?if yes please link me i want to learn
hope some one can help me in this
thanks in advance

I have to say I haven't tried this with MySQL, however hope this helps.
For part 1 of your question:
I suggest the easiest way is to use the free MySQL ODBC driver from http://dev.mysql.com/downloads/connector/odbc/5.1.html
Delphi supports connecting using ODBC (Open Database Connectivity). Essentially, Delphi doesn't know about any of the particular features of the MySQL database, but knows about a smaller set of features common across the majority databases.
If you can get this ODBC driver to connect to MySQL, then you will be able to look at all of the good examples on the Internet and in the supplied Delphi help files showing you how to:
Create an ODBC data source in Windows ODBC Manager.
Open a TDatabase connection to the MySQL ODBC data source
Connect a TTable to a TDatabase
Connect a TDataSource to a TTable
Connect a TDBEdit to a TDataSource
You will need to learn yourself how to connect these to a particular table in your MySQL database.
Connecting these components together like this should give you a working example for what you are trying.
You should find lots of good tutorials showing you how to connect to an ODBC database on the Internet.
For part 2 of your question:
Once you have done part 1, reaching part 2 is a small step from there.
Connect a TDBNavigator to the TDataSource.
This will enable you to navigate the table of data and will enable an add/edit/delete feature for the table allowing a new row, deletion of a row and editing of a row.
Best of luck with this.

Related

Connecting to MySQL Database with Aulux Barcode software

I have a local MySQL Database which stores all the details for my Point of Sale software - Unicenta oPOS. I am able to connect to the database just fine with Unicenta and with my website software.
I am trying to use a piece of software called Aulux Barcode Label Maker 7 to create labels for my products. I cannot seem to get this software to connect to my database. Has anyone done anything similar? Or have any tips that might work?
See attached some screenshots of my Unicenta config which does work and the Aulux which does not. Note that I have tried all different combinations of the host name used in Unicenta, but doesn't seem to matter how I format it...
Unicenta works fine...
Option chosen for Aulux
Fails to connect. I have tried adding port and such...
Thanks for your time!
I had issues myself with this but figured out a way to make it work, hopefully it helps someone else too.
First you need to download the correct MySQL ODBC connector for your system.
Once that is done set it up by typing in "Data Sources (ODBC)" in the windows search.
Add the MySQL ODBC Unicode Driver, along with the name e.g. MySQL, IP Server, User, Password & database.
Once that's done you can go into Aulux Barcode Maker and go to Data Table -> Database
Select Microsoft OLE DB Provider for ODBC Drivers -> Next
Select your newly created connection e.g. MySQL (Or whatever you named it)
Put in the MySQL username and password but leave the following field blank (catalog to use)
That's it, your done. Hope it helps ;)

Using MS Access as a front-end to MySQL db

I am using MySQL DB for my android application. I have installed phpmyadmin on my Ubuntu LAMP server and using it to access my DB. Is there any possibilities to access the DB using MS access 2010, as I need to do perform modifications on a regular basis to my DB
If the aim is to change the data and not the structure, using MS access is a good solution, as you can edit anything in linked tables very efficiently with litlle setup efforts.
To achieve this, first you need to download and install the MySQL ODBC driver.
In order to avoid issues, I advise you to install the 32 bit driver, even if you're on a 64 bit system. The 32bit will work flawesly, which is not always the case of the 64 bit.
Once installed, open the ODBC control panel and add an entry pointing to your MySQL database
Then in Access you can add linked tables using this ODBC entry
Once the table are linked, they will behave as if they are MS access tables and you can open them and edit data, and much more.
You can use Microsoft Access as a front-end to your MySQL database.
Refer: MySQL Documentation
But for your case, directly accessing database is wrong. I suggest better you have a view page with php to update DB with proper required validations.
The answer by Thomas G does an excellent job of describing WHAT we need to do, and even provides some good links.
What we need now is a good, step-by-step description of HOW to accomplish all the steps Thomas G describes.
I've been looking for this for a long time, and still no luck. However, I'm possibly on the track of getting that answer, and if I find it, I'll come back here and post it.

MS ACCESS - MYSQL personalized sync

I have to connect two existing databases: a ms access one (Access 2010) stored on al local server (Windows Server 2008 R2) and used by my company, which can't be modified in the structure except to add new fields (my collegues absolutely don't want to change); and a mysql one stored on a server on-line and from which the data are picked up by a PHP program (this means that it would be very onerous to change the structure for me). The structure of these two databases is similar but not completely identical: for example i need to put the data of two tables of the access into only one of the mysql, and the names of the fields are completely different from a database to another. Can anyone suggest me a software to connect and synchronize them (even once a hour)? I know there are several options like ODBC connector offered directly from mysql.com but i've had problems installing it, and I've also tried that: https://dbconvert.com/mysql/access/ but it seems to not support my version of access db so I wasn't able to understand if these two solutions were adaptable to my situation. Does someone who has faced a similar problem and who is more experienced than me suggest an easy solution? Should I try harder with the two "solutions" i mentioned? Sorry for the ignorance, I trust you :)
Have an Access file use linked tables to the Access DB and linked tables via ODBC to MySQL, this method works well. Look into improving your ODBC Connection.
I found the 32 bit version of ODBC to MySQL gave me better results, linking from Access 2003.

Connecting Vb.net 2013 and Web into mysql

okay. before we begin our project I just want ask
does the vb.net 2013 and web(online) can have a 1 database only one database(my sql)?
the name of our project is library system using barcode and the panel added a website for the user to reserved a book online
and the panel said that both system and the website must have only one database.. is that possible?
and before we begin what (mysql) database should i use in our system, what should i download in this site http://dev.mysql.com/downloads/ ??? do we need a sql connector ???
or can i use the mysql in wamp to connect both system and web? is that possible for vb.net 2013 and web?
I really lost about this,, so pls help me thanks....
You can connect any amount of items to a database provided that your server can handle the connections. All that is needed is the connection string to open a connection, then you need to handle data readers and the such (I prefer to use entity framework).
As for having only one database, think about what would happen if there were two databases. I go online, reserve the book in one database, but then you go to the physical library 5 minutes later and check out the book that I reserved because it does not show reserved in that database. See the problem? Both need to use the same database for book tracking or else you run into situations similar to what I just mentioned.

publishing Filemaker (database software) data on Wordpress website

We would like to be able to publish Filemaker data on our Wordpress website. The website is up and running and the filemaker database is set up. We do not need a live connection between both systems so we chose to export the FM data to .csv so we can import it to the mysql database on the server and from there we would like to display in on the website.
Now are my questions, since this kind of development is new to us:
can I setup an automated import to the mysql database from a source like dropbox or something? For example can we make the mysql database import and overwrite the existing database each 24 hours from a .csv file located somewhere? We need this automated overwrite option because the FM data changes often and we need up to date info on the website)
How can we display the data from the mysql database on the WP frontend?
I've been looking into this myself and couldn't find any clear answers or guides. Can you guys point me in the right direction?
(btw, I know there are table plugins I can use for WP but they do not fulfill our needs, and I think it's exciting to do it all by ourself with help from this great community)
Update 01
I've successfully connected FM with my MySQL db using ODBC and can now select tables from the MySQL db in FM's relational graph.
I was wondering how I can write the data from my existing FM file to the MySQL db using ODBC, can anybody help me on this?
I would like to display the data in some MySQL tables so I can fetch them using php on my website.
Thanks!
It is possible to write directly into (and read from) a remote MySQL database from FileMaker via ODBC.
You need an MySQL account which allows remote access. There are providers where this is not allowed.
On the local box the odbc driver needs to be installed. On Win you can use the open source version (http://dev.mysql.com/downloads/connector/odbc/), on Mac it works better with the Actual Tech (http://www.actualtech.com/de/product_opensourcedatabases.php) drivers.
An odbc system dsn (not user dsn) is set up. Be sure to use the 32-bit odbc manager on Win.
Now you can create the external data source within FileMaker and read and write into MySQL tables.
Once you have made the connection to the MySQL database, and you can see the shadow tables, you can write to the fields directly via Filemaker layouts. It's as simple as that.
Once the layout contains the fields from the MySQL database you can move through records, find stuff all as if the data were native in your FM database. Of course, for more automated processing, you can create scripts, relationships etc and manipulate/synchronise data. Be warned though, the connection speed can limit complex relationships and large databases. I would advise 'baby steps'.