跳至主要内容

Alternativa a XAMPP en Mac para MySQL

Durante mucho tiempo, he estado usando XAMPP como mi entorno local para crear aplicaciones. XAMPP usa MariaDB, que es casi similar a MySQL, pero aquí está el truco, casi.

El equipo de desarrollo de MariaDB es muy agresivo y ha estado lanzando constantemente nuevas versiones. Sin embargo, no hay mucha diferencia entre las nuevas versiones. En cambio, se han introducido muchos errores. He experimentado la situación en la que la base de datos dejó de funcionar después de una actualización.

Así que he estado buscando una solución para usar MySQL en XAMPP, pero como he descubierto, no es difícil hacerlo en máquinas Windows, pero no he encontrado ningún recurso para que funcione en Mac.

ServBay

Me encontré con ServBay y quería probarlo. La característica más prometedora que me encanta es que tengo el control de crear mi propio entorno de desarrollo basado en las herramientas y versiones de mi servidor en vivo.

Es una joya de producto, pero el problema era que no ha sido mencionado mucho por la gente, como he notado en Internet. En resumen, finalmente lo he logrado. En la siguiente sección, describiré paso a paso cómo puedes trabajar con ServBay también.

Instalando ServBay en Mac

  • Lo primero que debes hacer es descargar e instalar ServBay desde su sitio web. Los requisitos mínimos del sistema deben ser macOS 12.0 Monterey o superior.

  • Haz doble clic en el archivo .dmg descargado.

  • En la ventana emergente, arrastra el icono ServBay.app a la carpeta Aplicaciones. Todos los pasos son los mismos que para instalar programas normales de Mac, y no se requiere compilación de código.


  • Para el primer uso, ServBay requiere inicialización. Abre ServBay en Aplicaciones asegurándote de que los puertos no estén ocupados.


  • En la ventana emergente, selecciona el paquete y la versión que deseas instalar, luego haz clic en Aceptar.

  • Una vez que veas esta página, significa que has instalado ServBay correctamente.


Cómo usar el módulo MySQL incorporado de ServBay

Si deseas usarlo, ve a "Servicios" a la izquierda.



Selecciona MySQL y elige la versión que deseas instalar.


Espera unos segundos y listo.


¡Buen trabajo! ¡Eso es muy fácil!


MySQL no requiere configuración en ServBay. Por supuesto, si necesitas una configuración más profunda, puedes comprar la versión Pro para desbloquear esas funciones. Sin embargo, ServBay es muy considerado; para mí, los parámetros predeterminados en la versión gratuita ya son suficientes para mis necesidades de desarrollo diarias, y no necesito hacer ningún cambio.

ServBay proporciona una forma conveniente de administrar y habilitar el módulo MySQL. Con operaciones simples de configuración y reinicio, los desarrolladores pueden habilitar rápidamente el módulo MySQL.

Con ServBay, también puedo cambiar diferentes versiones de MySQL sin problemas. ¡Personalmente, ServBay es la mejor alternativa para XAMPP en Mac! 

评论

此博客中的热门博文

Software for MacOS Developers that cannot Miss, Again

  Here’s a summary of essential software for macOS development. All of these tools are free, and most are open-source. I hope they enhance your development experience. Basics Git Git needs no introduction. Simply run  git  in the terminal, and a dialog will pop up. Click install. This typically installs the basic Xcode runtime environment as well. Alternatively, you can install it by running  xcode-select --install  in the terminal. ServBay ServBay is probably the best development environment for Mac. It allows easy one-click installation of various development environments and simplifies subsequent upgrades. For teams, it ensures consistency in dependencies and configurations. Terminal Tools iTerm2  +  Oh-My-Zsh iTerm2 is the premier terminal on Mac, and Oh-My-Zsh provides powerful theming and plugin capabilities. Terminus A minimalist, cross-platform shell tool that I often use to connect to cloud servers. Debugging Tools Bruno Since Postman became p...

Beware the Mid-Career Crisis for Programmers: The Four Major Causes

In the rapidly evolving internet industry of today, questions and discussions like “Is 35 a turning point for programmers?”, “Do programmers really face unemployment at 35?”, and “What’s next for programmers after 35?” are rampant. The debate and concern over a so-called “crisis at 35” for programmers have become hot topics. This may stem from an uncertainty about the future and a fear of the pace at which AI technology is developing. As they age, programmers might face the risk of becoming “obsolete” and struggle to adapt to industry changes. “However, the solution lies with the one who tied the bell,” so to speak. We should face and address these issues, explore the reasons behind them, and understand how to avoid such situations. Therefore, this article delves into the root causes of these issues and offers practical advice to help programmers avoid these pitfalls, enhance their professional level and achievements, and stay ahead of the times. Not Proficient with Tools As programmer...

Modern PHP Development in 2024

In 2024, PHP remains a strong contender in modern web development. Despite a decline in its ranking on the TIOBE index, PHP is still one of the most widely used programming languages for websites. Its practicality, efficiency, and performance improvements make it a solid choice. For instance, the latest versions of PHP (like PHP 8.1 and above) have shown significant speed enhancements, making it competitive with Python or Node.js, and even faster in some scenarios. PHP’s development speed is also quite rapid, similar to Python, and it boasts a rich set of built-in functions and libraries that facilitate quick development. Additionally, PHP is relatively easy to deploy, especially for large-scale applications. Applications handling millions of requests can efficiently achieve load balancing with proper endpoint caching in PHP. The advantages and development trends of PHP are evident in several areas. Firstly, PHP is favored for its simple and readable syntax, making it particularly suit...