Mac: Connecting to msSQL Server on Mac

Filed in mac | php 3 Comments

This is for ppl who are mac lover and mysql lover but due to work requirement have to conenct to mssql server on their mac.

if you had installed PHP Apache Module from Entropy.ch the following instruction is for you, else, you may try my earlier post on installing msSQL extension for php in *nix/Centos Server, largely used by WHM/cPanel.

entropy’s php for the version i install for mac is still in beta. but it comes with freeTDS installed, i am not too sure about the earlier versions. so to conenct to mssql server you jus have to configure your freetds.conf file which should be located in, the path,

/usr/local/php5/etc/freetds.conf

you may had name “php5″ with something else instead.

vi this file or open with a text editor and insert the following line at the end.

[MSHOSTNAME]
host = MSHOSTNAME
port = 1433
tds version = 8.0

note that MSHOSTNAME for both case mus be the same, and is something like 192.168.0.100 or mssql.somehost.com etc. it should be the hostname you are connecting to probably in your php script.

ie: $link = mssql_connect(‘MSHOSTNAME’,'username’,'password’) or die(‘Damn! Unable to connect to msSQL Server!’);

tds version depends on the mssql server version you are connecting to, gennerally 8.0, and port is standard 1433 unless your remote mssql server connects on weird port number.

save, and you are done!

, , ,

Mac: Apple Remote

Filed in mac Leave a comment

so you jus brought an apple remote and you want to pair it with your macbook, macbook pro etc, what do you do?

from Apple, it says:
1. Log in as an Admin user.
2. Get extra close to your Mac (about 3 or 4 inches away).
3. Point the remote at the Apple logo on the front of your Mac.
4. Press and hold the Menu and Next/Fast-forward buttons simultaneously on the remote for 5 seconds.

well, it got me trying for hours and still nothing works, until i found this webpage!

So, if the above 4 steps dun work for you,
replace step 4 with:
Press and hold the Menu and Play buttons simultaneously on the remote for 5 seconds.

simple! it is time apple update their support articles!

, ,

TOP