title: Can I directly access MySQL from iPhone using MYSQL API?
body: <p>I have developed an iPhone application which needs to access MySQL database on the server. It builds very well on 'iPhone simulator',but when I want to build 'Device' version, it fails with error messages bolow:</p>
  
  <p>ld: warning: in /usr/local/mysql/lib/libmysqlclient.dylib, file was built for i386 which is not the architecture being linked (armv6)</p>
  
  <p>ld: warning: in /usr/local/mysql/lib/libmygcc.a, file was built for unsupported file format which is not the architecture being linked (armv6)</p>
  
  <p>Is it unreachable to access MySQL from iPhone? Or MySQL server library is wrong?</p>