05. oktober 2000 - 00:02Der er
12 kommentarer og 2 løsninger
Få MySQL til at køre offline på PWS via ODBC.
under læsning af ?\'et http://www.eksperten.dk/spm/27629 læste jeg at \"mike@work\" fortalte om den ODBC driver man skal bruge til Windoze for at få det til at virke med MySQL Serveren. Den har jeg downloaded for noget tid siden men jeg har først lige gået i gang med at prøve den, men jeg har ikke den ringeste ide om hvordan jeg skal sætte et ODBC link op i Windows, og hvilken Connection jeg skal lave til databasen i ASP. (altså den man åbner med DB navnet;driveren)
Brug af AI afslører de svagheder, virksomheder allerede har opbygget gennem års cloud-transformation, nye SaaS-løsninger og fragmenterede sikkerhedssystemer.
I kontrolpanelet klikker du på ikonet ODBC. Der skulle din MySQL-ODBC driver gerne være. Du opretter et nyt DSN (Data Source Name) ved at vælge den, tryk på Tilføj/Add, giver den et navn og skriver adresse (evt. locahost), database og evt. brugernavn og password.
I ASP er din connectionstring nu blot \"DSN=detnavnduvalgtefør\".
Og du er 100 på at din mySQL-service er startet ?!?!? (Den var smuttet for mig) Start en command promt op - skriv \"net start mySQL\" - og så skulle den starte !
Jeg er selv _MEGET_ ny i mySQL - Men jeg fik det sgu til at virke i går....
Nej - Det er fordi din sql-server ikke er startet....
Manualen siger : ---------- MySQL uses TCP/IP to connect a client to a server. (This will allow any machine on your network to connect to your MySQL server). Because of this, you must install TCP/IP on your machine before starting MySQL. You can find TCP/IP on your Windows CD-ROM.
Note that if you are using an old Win95 release (for example OSR2), it\'s likely that you have an old Winsock package! MySQL requires Winsock 2! You can get the newest Winsock from Microsoft. Win98 has as default the new Winsock 2 library, so the above doesn\'t apply for Win98.
There are 2 different MySQL servers you can use:
mysqld Compiled with full debugging and automatic memory allocation checking mysqld-opt Optimized for a Pentium processor.
Both of the above should work on any Intel processor >= i386.
To start the mysqld server, you should start an MS-DOS window and type:
C:\\mysql\\bin\\mysqld
This will start mysqld in the background without a window.
You can kill the MySQL server by executing:
C:\\mysql\\bin\\mysqladmin -u root shutdown
Note that Win95/Win98 don\'t support creation of named pipes. On Win95/Win98, you can only use named pipes to connect to a remote MySQL running on an NT server.
If mysqld doesn\'t start please check whether or not the `\\mysql\\mysql.err\' file contains any reason for this. You can also try to start it with mysqld --standalone; In this case you may get some useful information on the screen that may help solve this.
The last option is to start mysqld with --debug. In this case mysqld will write a log file in `\\mysqld.trace\' that should contain the reason why mysqld doesn\'t start. If you make a bug report about this, please only send the lines where something seams to go wrong to the mailing list! ---------
Jamen sku det være en anden gang (at du ønskede at blive ledt på vild spor), jamen så sig til ;)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.